/* Cariara - Teal & White Design System */
/* Clean, professional, modern - inspired by Rafay */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   CSS Custom Properties - Teal Theme
   ======================================== */

:root, [data-theme="light"] {
    /* Background Colors - Clean white */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-elevated: #ffffff;
    --bg-white: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-muted: #e2e8f0;
    --bg-base: #ffffff;

    /* Text Colors - Dark slate */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #475569;
    --text-muted: #64748b;

    /* Border Colors - Light gray */
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    --border-default: #e2e8f0;
    --border-subtle: #f1f5f9;

    /* Teal accent colors */
    --accent-primary: #14b8a6;
    --accent-hover: #0d9488;
    --accent-gradient: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 50%, #0d9488 100%);
    --accent-light: #5eead4;
    --accent-medium: #14b8a6;
    --accent-deep: #0d9488;
    --accent-blue: #14b8a6;
    --accent-blue-muted: rgba(20, 184, 166, 0.15);
    --accent-blue-light: #14b8a6;
    --accent-purple: #0d9488;

    /* Legacy purple aliases for compatibility */
    --purple-light: #5eead4;
    --purple-medium: #14b8a6;
    --purple-deep: #0d9488;

    /* Status colors */
    --success: #16a34a;
    --success-muted: #dcfce7;
    --error: #dc2626;
    --error-muted: #fef2f2;
    --warning: #ca8a04;
    --primary-yellow: #14b8a6;
    --primary-yellow-light: #5eead4;

    /* Sidebar specific - Dark navy */
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-border: #1e293b;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
}

[data-theme="dark"] {
    /* Background Colors - Dark slate */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --bg-elevated: #1e293b;
    --bg-white: #1e293b;
    --bg-subtle: #1e293b;
    --bg-muted: #334155;
    --bg-base: #0f172a;

    /* Text Colors - Light slate */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;

    /* Border Colors - Dark slate */
    --border-color: #334155;
    --border-light: #475569;
    --border-default: #334155;
    --border-subtle: #1e293b;

    /* Teal accent colors */
    --accent-primary: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-gradient: linear-gradient(135deg, #5eead4 0%, #2dd4bf 50%, #14b8a6 100%);
    --accent-light: #5eead4;
    --accent-medium: #2dd4bf;
    --accent-deep: #14b8a6;
    --accent-blue: #2dd4bf;
    --accent-blue-muted: rgba(45, 212, 191, 0.15);
    --accent-blue-light: #5eead4;
    --accent-purple: #14b8a6;

    /* Legacy purple aliases for compatibility */
    --purple-light: #5eead4;
    --purple-medium: #2dd4bf;
    --purple-deep: #14b8a6;

    /* Status colors */
    --success: #22c55e;
    --success-muted: #14532d;
    --error: #ef4444;
    --error-muted: #450a0a;
    --warning: #eab308;
    --primary-yellow: #2dd4bf;
    --primary-yellow-light: #5eead4;

    /* Sidebar specific - Dark navy */
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-border: #1e293b;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   Typography - Simple & Clean
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

a {
    color: var(--text-primary);
    text-decoration: underline;
}

a:hover {
    color: var(--text-secondary);
}

/* ========================================
   Layout Components
   ======================================== */

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sidebar - Dark Navy */
.sidebar {
    width: 220px;
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: none; /* Prevent size animation during navigation */
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}

.sidebar-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a !important;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    background: #ffffff !important;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #334155 !important;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 500;
}

.sidebar-nav a:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.sidebar-nav a.active {
    background: #14b8a6 !important;
    color: #ffffff !important;
}

.sidebar-nav a svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Sidebar section titles */
.nav-section-title {
    color: #64748b !important;
}

/* Sidebar filter sections */
.sidebar-filter-title {
    color: #64748b !important;
}

.sidebar-filter-item {
    color: #334155 !important;
}

.sidebar-filter-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.sidebar-filter-item.active {
    background: rgba(20, 184, 166, 0.15) !important;
    color: #14b8a6 !important;
}

.sidebar-filter-item .filter-count {
    color: #64748b !important;
    background: #f1f5f9 !important;
}

.sidebar-company-item {
    color: #334155 !important;
}

.sidebar-company-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.sidebar-company-item.active {
    background: rgba(20, 184, 166, 0.15) !important;
    color: #14b8a6 !important;
}

.sidebar-company-item .company-initial {
    background: #f1f5f9 !important;
    color: #14b8a6 !important;
}

.sidebar-company-item .company-count {
    color: #64748b !important;
    background: #f1f5f9 !important;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 200px;
    padding: 24px;
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 600;
}

/* ========================================
   Cards - Minimal borders only
   ======================================== */

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Stats Cards - No colors, just numbers */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.stat-card .number {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

/* Remove colored stat variants - all same */
.stat-card.stat-blue .number,
.stat-card.stat-yellow .number,
.stat-card.stat-green .number,
.stat-card.stat-purple .number {
    color: var(--text-primary);
}

/* ========================================
   Buttons - Simple & Monochrome
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    font-weight: 600;
}

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

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Remove colored button variants */
.btn-success,
.btn-danger {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-success:hover,
.btn-danger:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* ========================================
   Form Elements
   ======================================== */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-muted);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 13px;
}

.filter-bar input {
    min-width: 250px;
}

.filter-bar input::placeholder {
    color: var(--text-muted);
}

/* ========================================
   Tables
   ======================================== */

.table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: var(--text-primary);
    font-size: 13px;
}

tr:hover td {
    background: var(--bg-hover);
}

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

/* ========================================
   Modal
   ======================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

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

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.modal h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ========================================
   Theme Switch
   ======================================== */

.theme-switch-container {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 200;
}

.theme-switch {
    display: flex;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px;
}

.theme-switch button {
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 3px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}

.theme-switch button:hover {
    color: var(--text-primary);
}

.theme-switch button.active {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.theme-switch button svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   Status Badges - Monochrome only
   ======================================== */

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
    color: var(--text-secondary);
    background: transparent;
}

/* All statuses same style - no colors */
.status-wishlist,
.status-applied,
.status-interviewing,
.status-offer,
.status-rejected,
.status-withdrawn {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

/* ========================================
   Alerts - Subtle, no colors
   ======================================== */

.alert {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.alert-success,
.alert-error,
.alert-info,
.alert-warning {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

/* ========================================
   Loading & Empty States
   ======================================== */

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--text-muted);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-nav {
        display: flex;
        padding: 8px;
        gap: 4px;
        overflow-x: auto;
    }

    .sidebar-nav a {
        white-space: nowrap;
        margin-bottom: 0;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar input {
        min-width: 100%;
    }
}

/* ========================================
   Header Navigation - Dark Navy
   ======================================== */

header {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

header h1 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

header nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    display: block;
    padding: 8px 14px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
}

header nav ul li a:hover {
    background: #1e293b;
    color: #ffffff;
}

header nav ul li a.active {
    background: var(--accent-primary);
    color: #ffffff;
}

header .theme-toggle {
    margin-left: 8px;
}

header .theme-toggle button {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
    color: #94a3b8;
}

header .theme-toggle button:hover {
    background: #334155;
    color: #ffffff;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid #334155;
}

.user-menu .user-name {
    color: #94a3b8;
    font-size: 12px;
}

.user-menu .btn-small {
    padding: 4px 10px;
    font-size: 11px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    color: #94a3b8;
    cursor: pointer;
    text-decoration: none;
}

.user-menu .btn-small:hover {
    background: #334155;
    color: #ffffff;
}

/* ========================================
   Dark Theme Overrides
   ======================================== */

[data-theme="dark"] .sidebar {
    background: #0f172a !important;
    border-right-color: #1e293b !important;
}

[data-theme="dark"] .sidebar-header {
    background: #0f172a !important;
    border-bottom-color: #1e293b !important;
}

[data-theme="dark"] .sidebar-header h1 {
    color: #ffffff !important;
}

[data-theme="dark"] .sidebar-nav {
    background: #0f172a !important;
}

[data-theme="dark"] .sidebar-nav a {
    color: #94a3b8 !important;
}

[data-theme="dark"] .sidebar-nav a:hover {
    background: #1e293b !important;
    color: #ffffff !important;
}

[data-theme="dark"] .sidebar-nav a.active {
    background: #14b8a6 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .nav-section-title {
    color: #64748b !important;
}

[data-theme="dark"] .sidebar-filter-title {
    color: #64748b !important;
}

[data-theme="dark"] .sidebar-filter-item {
    color: #94a3b8 !important;
}

[data-theme="dark"] .sidebar-filter-item:hover {
    background: #1e293b !important;
    color: #ffffff !important;
}

[data-theme="dark"] .sidebar-filter-item.active {
    background: rgba(45, 212, 191, 0.15) !important;
    color: #2dd4bf !important;
}

[data-theme="dark"] .sidebar-filter-item .filter-count {
    color: #64748b !important;
    background: #1e293b !important;
}

[data-theme="dark"] .sidebar-company-item {
    color: #94a3b8 !important;
}

[data-theme="dark"] .sidebar-company-item:hover {
    background: #1e293b !important;
    color: #ffffff !important;
}

[data-theme="dark"] .sidebar-company-item.active {
    background: rgba(45, 212, 191, 0.15) !important;
    color: #2dd4bf !important;
}

[data-theme="dark"] .sidebar-company-item .company-initial {
    background: #1e293b !important;
    color: #2dd4bf !important;
}

[data-theme="dark"] .sidebar-company-item .company-count {
    color: #64748b !important;
    background: #1e293b !important;
}

/* Dark theme for sidebar user info */
[data-theme="dark"] .sidebar-user-info {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .sidebar-user-info:hover {
    background: #334155 !important;
}

[data-theme="dark"] .sidebar-user-name {
    color: #ffffff !important;
}

[data-theme="dark"] .sidebar-user-email {
    color: #94a3b8 !important;
}

[data-theme="dark"] .sidebar-footer {
    background: #0f172a !important;
    border-top-color: #1e293b !important;
}

/* ========================================
   Admin Sidebar Light Theme (Explicit)
   ======================================== */

[data-theme="light"] .admin-sidebar,
:root .admin-sidebar {
    background: #ffffff !important;
    border-right-color: #e2e8f0 !important;
}

[data-theme="light"] .admin-sidebar-header,
:root .admin-sidebar-header {
    background: #ffffff !important;
    border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .admin-logo-text,
:root .admin-logo-text {
    color: #0f172a !important;
}

[data-theme="light"] .admin-nav,
:root .admin-nav {
    background: #ffffff !important;
}

[data-theme="light"] .admin-nav-label,
:root .admin-nav-label {
    color: #64748b !important;
}

[data-theme="light"] .admin-nav-item,
:root .admin-nav-item {
    color: #334155 !important;
}

[data-theme="light"] .admin-nav-item:hover,
:root .admin-nav-item:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .admin-nav-item.active,
:root .admin-nav-item.active {
    background: #14b8a6 !important;
    color: #ffffff !important;
}

[data-theme="light"] .admin-sidebar-footer,
:root .admin-sidebar-footer {
    background: #ffffff !important;
    border-top-color: #e2e8f0 !important;
}

[data-theme="light"] .admin-user-info,
:root .admin-user-info {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .admin-user-name,
:root .admin-user-name {
    color: #0f172a !important;
}

[data-theme="light"] .admin-user-email,
:root .admin-user-email {
    color: #64748b !important;
}

[data-theme="light"] .admin-logout-btn,
:root .admin-logout-btn {
    background: transparent !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

[data-theme="light"] .admin-logout-btn:hover,
:root .admin-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}

[data-theme="light"] .admin-signout-btn,
:root .admin-signout-btn {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

[data-theme="light"] .admin-signout-btn:hover,
:root .admin-signout-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}

[data-theme="light"] .admin-topbar,
:root .admin-topbar {
    background: #ffffff !important;
    border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .admin-topbar-title,
:root .admin-topbar-title {
    color: #0f172a !important;
}

[data-theme="light"] .admin-topbar-btn,
:root .admin-topbar-btn {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

[data-theme="light"] .admin-topbar-btn:hover,
:root .admin-topbar-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* ========================================
   Admin Sidebar Dark Theme Overrides
   ======================================== */

[data-theme="dark"] .admin-sidebar {
    background: #0f172a !important;
    border-right-color: #1e293b !important;
}

[data-theme="dark"] .admin-sidebar-header {
    background: #0f172a !important;
    border-bottom-color: #1e293b !important;
}

[data-theme="dark"] .admin-logo-text {
    color: #ffffff !important;
}

[data-theme="dark"] .admin-nav {
    background: #0f172a !important;
}

[data-theme="dark"] .admin-nav-label {
    color: #64748b !important;
}

[data-theme="dark"] .admin-nav-item {
    color: #94a3b8 !important;
}

[data-theme="dark"] .admin-nav-item:hover {
    background: #1e293b !important;
    color: #ffffff !important;
}

[data-theme="dark"] .admin-nav-item.active {
    background: #14b8a6 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .admin-sidebar-footer {
    background: #0f172a !important;
    border-top-color: #1e293b !important;
}

[data-theme="dark"] .admin-user-info {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .admin-user-name {
    color: #ffffff !important;
}

[data-theme="dark"] .admin-user-email {
    color: #94a3b8 !important;
}

[data-theme="dark"] .admin-logout-btn {
    background: transparent !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .admin-logout-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}

[data-theme="dark"] .admin-topbar {
    background: #1e293b !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .admin-topbar-title {
    color: #ffffff !important;
}

[data-theme="dark"] .admin-topbar-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .admin-topbar-btn:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .admin-signout-btn {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .admin-signout-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #ef4444 !important;
}

[data-theme="dark"] .admin-content {
    background: #0f172a !important;
}

[data-theme="dark"] .admin-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .admin-stat-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .admin-table th {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

[data-theme="dark"] .admin-table td {
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .admin-table tbody tr:hover {
    background: #334155 !important;
}
