/* Light (default) - no overrides needed, professional-layout.css defines it */

/* Dark theme */
[data-theme="dark"] .page-wrapper {
    background-color: #0f172a;
}

[data-theme="dark"] .top-navbar {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .main-content {
    background-color: #0f172a;
    color: #e2e8f0;
}

[data-theme="dark"] .footer {
    background-color: #020617;
    color: #94a3b8;
    border-top-color: #1e293b;
}

[data-theme="dark"] .card {
    background-color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #e2e8f0;
}

[data-theme="dark"] .card-header {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    color: #f1f5f9;
}

[data-theme="dark"] .table {
    color: #e2e8f0;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(30, 41, 59, 0.5);
}

[data-theme="dark"] .table-hover > tbody > tr:hover {
    background-color: rgba(51, 65, 85, 0.6);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #1e293b;
    border-color: #475569;
    color: #f1f5f9;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    border-color: #64748b;
    background-color: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .form-control::placeholder {
    color: #64748b;
}

[data-theme="dark"] .alert-info {
    background-color: #1e3a5f;
    border-color: #2563eb;
    color: #93c5fd;
}

[data-theme="dark"] .alert-warning {
    background-color: #422006;
    border-color: #d97706;
    color: #fcd34d;
}

[data-theme="dark"] .alert-danger {
    background-color: #450a0a;
    border-color: #dc2626;
    color: #fca5a5;
}

[data-theme="dark"] .alert-success {
    background-color: #052e16;
    border-color: #16a34a;
    color: #86efac;
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] .text-muted {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .bg-light {
    background-color: #1e293b !important;
}

/* Blue theme (cooler, ocean-style) */
[data-theme="blue"] .page-wrapper {
    background-color: #f0f9ff;
}

[data-theme="blue"] .top-navbar {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.25);
}

[data-theme="blue"] .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

[data-theme="blue"] .nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
}

[data-theme="blue"] .card-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
}

[data-theme="blue"] .btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
}

[data-theme="blue"] .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

[data-theme="blue"] .form-control:focus,
[data-theme="blue"] .form-select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

[data-theme="blue"] .footer {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
    color: #bae6fd;
    border-top: none;
}

[data-theme="blue"] .btn-login,
[data-theme="blue"] .btn-logout {
    border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="blue"] .btn-register {
    color: #0369a1;
}

/* Theme switcher dropdown */
.theme-switcher {
    display: inline-block;
}

.theme-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    min-width: 140px;
    padding: 0.25rem 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    border: 1px solid #e2e8f0;
}

[data-theme="dark"] .theme-dropdown-menu {
    background: #1e293b;
    border-color: #475569;
}

.theme-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    color: #334155;
}

[data-theme="dark"] .theme-dropdown-item {
    color: #e2e8f0;
}

.theme-dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .theme-dropdown-item:hover {
    background-color: rgba(148, 163, 184, 0.2);
}

.theme-dropdown-item.active {
    font-weight: 600;
    background-color: rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .theme-dropdown-item.active {
    background-color: rgba(148, 163, 184, 0.25);
}

.theme-dropdown-divider {
    height: 1px;
    margin: 0.25rem 0;
    background-color: #e2e8f0;
}

[data-theme="dark"] .theme-dropdown-divider {
    background-color: #475569;
}
