:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --sidebar-width: 280px;
    --sidebar-collapsed: 70px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--light);
    color: var(--gray-900);
    overflow-x: hidden;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    padding-bottom: 40px; /* Space for footer */
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 70px !important;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.sidebar.collapsed .logo {
    justify-content: center;
    padding: 0;
}

.logo img {
    height: 32px;
    width: auto;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.toggle-sidebar:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
}

/* Navigation Sections */
.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.sidebar.collapsed .nav-section-title {
    display: none !important;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem;
}

.nav-link:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.nav-link.active {
    background: var(--primary);
    color: white;
    border-right: 4px solid var(--primary-dark);
}

.nav-link.active i {
    color: white;
}

.nav-link i {
    color: var(--gray-500);
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.2rem;
}

.nav-text {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-text {
    display: none !important;
}

.nav-badge {
    background: var(--primary);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sidebar.collapsed .nav-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.sidebar.collapsed .sidebar-footer {
    justify-content: center;
    padding: 1rem 0.5rem;
    flex-direction: column;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.sidebar.collapsed .user-info {
    display: none !important;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.75rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar.collapsed .logout-btn {
    display: none !important;
}

.logout-btn:hover {
    background: var(--gray-100);
    color: var(--danger);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 40px); /* Account for footer */
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px !important;
}

/* Header */
.main-header {
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--gray-400);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Remove notifications completely */
.notifications {
    display: none !important;
}

/* Content Area */
.content-wrapper {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-header {
    margin-bottom: 2rem;
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.content-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* Video Player */
.video-player {
    background: var(--gray-900);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(45deg, var(--gray-800), var(--gray-900));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-direction: column;
    gap: 1rem;
}

.play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s;
}

.play-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.resource-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
}

.resource-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.resource-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.resource-desc {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.resource-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-icon {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    justify-content: center;
}

/* Full Screen Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.modal-body {
    padding: 2rem;
}

/* Progress */
.progress-section {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-title {
    font-weight: 600;
    color: var(--gray-900);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar.small {
    height: 6px;
    margin: 0;
    flex: 1;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    color: var(--gray-800);
    font-size: 1.125rem;
}

.module-progress-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.module-progress-item span:first-child {
    flex: 0 0 180px;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.module-progress-item span:last-child {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

.activity-list {
    list-style: none;
}

.activity-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-list li i {
    margin-top: 0.125rem;
}

.activity-list li span {
    flex: 1;
    font-size: 0.875rem;
}

.activity-list li small {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.task-list {
    list-style: none;
}

.task-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.task-list li:last-child {
    border-bottom: none;
}

.task-list li input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.task-list li label {
    flex: 1;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-success {
    color: var(--success);
}

.text-primary {
    color: var(--primary);
}

.text-info {
    color: #06b6d4;
}

/* Course Navigation */
.course-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
}

.nav-link-prev {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s;
}

.nav-link-next {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s;
}

.nav-link-prev:hover,
.nav-link-next:hover {
    background: var(--gray-50);
    border-color: var(--primary);
    color: var(--primary);
}

/* Resource Specific Styles */
.calculator-container, .matrix-container, .calendar-container {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.result-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: var(--gray-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

tr:last-child td {
    border-bottom: none;
}

.calendar-view {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.calendar-day {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1rem;
    min-height: 200px;
}

.calendar-day h4 {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

/* Time Block Styles for CEO Calendar */
.time-block {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: move;
    transition: all 0.2s;
    position: relative;
}

.time-block:hover {
    background: var(--gray-200);
    border-color: var(--primary);
}

.time-block.ceo-block {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
}

.time-block.recruiter-block {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
}

.time-block .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 12px;
    padding: 2px;
    border-radius: 4px;
}

.time-block .remove-btn:hover {
    color: var(--danger);
    background: var(--gray-200);
}

.time-block strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.time-block p {
    color: var(--gray-600);
    font-size: 0.75rem;
    margin: 0;
}

/* Calendar day slots */
.day-slots {
    min-height: 150px;
    background: var(--white);
    border-radius: 6px;
    padding: 0.75rem;
    border: 2px dashed var(--gray-300);
}

.day-slots.has-content {
    border-style: solid;
    border-color: var(--gray-400);
}

/* Footer */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--gray-600);
    z-index: 90;
}

/* Adjust main content for footer */
.main-content {
    padding-bottom: 40px !important;
}

/* Help Modal */
.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.help-modal.active {
    display: flex;
}

.help-modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.help-modal-content .modal-header {
    padding: 0 0 1rem 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.help-modal-content .modal-title {
    font-size: 1.25rem;
    margin: 0;
}

.faq-section {
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.faq-item p {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
}

.support-section {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.support-section h3 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.support-section p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.support-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.support-section a:hover {
    text-decoration: underline;
}

/* Tool Actions in Full Screen */
.tool-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.tool-actions .btn {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gray-300);
}

.tool-actions .btn:hover {
    background: var(--white);
}

/* Print/PDF Styles */
@media print {
    .app-container,
    .main-header,
    .sidebar,
    .resource-actions,
    .tool-actions,
    .modal-close,
    .app-footer,
    .help-modal {
        display: none !important;
    }
    
    .modal-overlay {
        display: block !important;
        position: static;
        background: none;
    }
    
    .modal-content {
        max-height: none;
        box-shadow: none;
        border: none;
    }
    
    body {
        background: white;
    }
    
    .time-block {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ddd !important;
        background: #f9f9f9 !important;
        margin-bottom: 0.5rem;
    }
    
    .time-block strong {
        color: #000 !important;
    }
    
    .day-slots {
        border: 1px solid #ddd !important;
        min-height: auto;
    }
    
    /* Hide interactive elements in print */
    .remove-btn,
    .btn,
    button,
    [draggable="true"] {
        display: none !important;
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-300);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-view {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .module-progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .module-progress-item span:first-child {
        flex: none;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Admin Panel Styles */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
}

.admin-login-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.admin-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.admin-header i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.admin-header h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: var(--gray-600);
}

.admin-login-form {
    margin-bottom: 2rem;
}

.admin-login-form .form-group {
    margin-bottom: 1.5rem;
}

.readonly-input {
    background: var(--gray-50);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-admin-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-admin-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.admin-login-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Admin Panel Container */
.admin-panel-container {
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.admin-header-bar h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-900);
}

.admin-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 120px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-refresh {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: var(--gray-200);
}

/* Admin Sections */
.admin-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-section h2 {
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
}

/* Add User Form */
.add-user-form {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.btn-generate, .btn-add-user, .btn-tool, .btn-action {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-generate {
    background: var(--gray-100);
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-generate:hover {
    background: var(--gray-200);
}

.btn-add-user {
    background: var(--primary);
    color: white;
}

.btn-add-user:hover {
    background: var(--primary-dark);
}

.password-preview {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.password-preview p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    margin: 0;
}

#generatedPassword {
    font-family: monospace;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--gray-300);
    font-weight: 600;
    color: var(--primary);
}

/* Users Table */
.users-table-container {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.users-table th {
    background: var(--gray-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.users-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.users-table tr:hover {
    background: var(--gray-50);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.status-inactive {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-action:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.btn-delete {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.2);
}

.btn-delete:hover {
    background: rgba(220, 38, 38, 0.2);
}

/* Admin Tools */
.admin-tools {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-tool {
    background: white;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-tool:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .admin-tools {
        flex-direction: column;
    }
}