/* Liquid Glass Effect for Login Page */

.liquid-glass-container {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 45px -12px rgba(0, 0, 0, 0.35),
        0 10px 15px -3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.liquid-glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    opacity: 0.6;
}

.liquid-glass-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.4),
        0 15px 25px -5px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.liquid-glass-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    border-radius: inherit;
    pointer-events: none;
}

.liquid-glass-content {
    padding: 2.5rem;
    position: relative;
    z-index: 10;
}

/* Interactive glow effect */
.liquid-glass-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(147, 51, 234, 0.1) 30%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    filter: blur(20px);
    transform: translate(-50%, -50%);
}

.liquid-glass-container:hover .liquid-glass-glow {
    opacity: 1;
}

/* Button glass effect */
.liquid-glass-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.8) 0%, 
        rgba(37, 99, 235, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
    box-shadow: 
        0 8px 16px rgba(59, 130, 246, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.liquid-glass-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.liquid-glass-button:hover::before {
    left: 100%;
}

.liquid-glass-button:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.9) 0%, 
        rgba(37, 99, 235, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(59, 130, 246, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.liquid-glass-button:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 8px rgba(59, 130, 246, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.liquid-glass-button span {
    position: relative;
    z-index: 2;
}

/* Input glass effect */
.liquid-glass-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.liquid-glass-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.liquid-glass-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 0 0 3px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Background with stunning logistics image */
.liquid-glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(
            135deg,
            rgba(4, 14, 24, 0.91) 0%,
            rgba(14, 34, 54, 0.82) 50%,
            rgba(24, 54, 84, 0.73) 100%
        ),
        url('https://plus.unsplash.com/premium_photo-1661879449050-069f67e200bd?fm=jpg&q=60&w=3000&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MXx8bG9naXN0aWNzfGVufDB8fDB8fHww') center/cover no-repeat,
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background-attachment: fixed;
    animation: subtlePulse 30s ease-in-out infinite;
}

/* Floating particles */
.liquid-glass-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0;
}

.liquid-glass-particle:nth-child(odd) {
    animation-delay: -2s;
}

.liquid-glass-particle:nth-child(even) {
    animation-delay: -4s;
}

/* Keyframe animations */
@keyframes liquidRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes subtlePulse {
    0%, 100% { 
        filter: brightness(1) contrast(1.1) saturate(1.1);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.05) contrast(1.15) saturate(1.15);
        transform: scale(1.01);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.7;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .liquid-glass-content {
        padding: 2rem 1.5rem;
    }
    
    .liquid-glass-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .liquid-glass-logo img {
        width: 70px;
        height: 70px;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .liquid-glass-content {
        padding: 1.5rem 1rem;
    }
    
    .liquid-glass-title {
        font-size: 1.5rem;
    }
}

/* Chrome aberration effect */
.liquid-glass-container.chromatic {
    position: relative;
}

.liquid-glass-container.chromatic::before {
    filter: 
        drop-shadow(2px 0 0 rgba(255, 0, 0, 0.1))
        drop-shadow(-2px 0 0 rgba(0, 255, 255, 0.1));
}

/* Enhanced hover states */
.liquid-glass-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.4),
        0 15px 25px -5px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.liquid-glass-container:active {
    transform: translateY(-4px) rotateX(2deg);
    transition: transform 0.1s ease;
}

/* Logo container improvements */
.liquid-glass-logo {
    text-align: center;
    margin-bottom: 2rem;
    animation: logoFloat 6s ease-in-out infinite;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.liquid-glass-logo .liquid-glass-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.liquid-glass-logo img {
    width: 140px;
    height: 140px;
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4)) 
            drop-shadow(0 4px 8px rgba(255, 255, 255, 0.1));
    transition: all 0.3s ease;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    display: block;
}

.liquid-glass-logo img:hover {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5)) 
            drop-shadow(0 6px 12px rgba(255, 255, 255, 0.15));
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.liquid-glass-logo .liquid-glass-title {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.1em;
}

/* Secondary button styling */
.liquid-glass-button.secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.liquid-glass-button.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Form spacing improvements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

/* Title enhancements */
.liquid-glass-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Branding container improvements */
.liquid-glass-branding {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.liquid-glass-branding p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.05em;
}

.login-logo-title {
    text-align: center;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.login-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.18);
    color: #fee2e2;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 36px rgba(248, 113, 113, 0.18);
    font-size: 0.95rem;
    font-weight: 500;
}

.login-alert span {
    display: block;
}

.login-alert-error {
    border-color: rgba(248, 113, 113, 0.45);
}

/* Enhanced animations */
@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(1deg); 
    }
}

@keyframes subtlePulse {
    0%, 100% { 
        filter: brightness(1) contrast(1.1) saturate(1.1);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.05) contrast(1.15) saturate(1.15);
        transform: scale(1.01);
    }
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-options {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    flex-wrap: nowrap;
}

.theme-btn {
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: 90px;
    text-align: center;
    flex-shrink: 0;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.theme-btn:hover::before {
    left: 100%;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.theme-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
    border-color: rgba(59, 130, 246, 0.8);
}

.theme-btn.active:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scale(1.1) translateY(-2px);
}

/* Light Theme */
body.light-theme {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.light-theme .liquid-glass-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    animation: none;
}

body.light-theme .liquid-glass-container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
}

body.light-theme .liquid-glass-container::after {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(226, 232, 240, 0.45) 50%,
        rgba(148, 163, 184, 0.25) 100%
    );
}

body.light-theme .liquid-glass-content {
    color: #1e293b;
}

body.light-theme .liquid-glass-title {
    color: #1e293b;
    text-shadow: none;
}

body.light-theme .login-logo-title {
    color: #0f172a;
    text-shadow: none;
}

body.light-theme .liquid-glass-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .liquid-glass-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .liquid-glass-input:focus {
    background: white;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body.light-theme .liquid-glass-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

body.light-theme .liquid-glass-button.secondary {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .form-label {
    color: #374151;
}

body.light-theme .liquid-glass-branding p {
    color: #475569;
}

body.light-theme .theme-options {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

body.light-theme .theme-btn {
    color: #374151;
}

body.light-theme .theme-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #1e293b;
}

body.light-theme .theme-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

body.light-theme .login-alert {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #7f1d1d;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.light-theme .login-alert span {
    color: inherit;
}

body.light-theme .liquid-glass-logo img {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.25);
}

/* Dark Theme */
body.dark-theme {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-theme .liquid-glass-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    animation: none;
}

body.dark-theme .liquid-glass-container {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: none;
}

body.dark-theme .liquid-glass-content {
    color: #e2e8f0;
}

body.dark-theme .liquid-glass-title {
    color: #f8fafc;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-theme .liquid-glass-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-theme .liquid-glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

body.dark-theme .liquid-glass-input:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body.dark-theme .liquid-glass-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

body.dark-theme .liquid-glass-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.dark-theme .form-label {
    color: #cbd5e1;
}

body.dark-theme .theme-options {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

body.dark-theme .theme-btn {
    color: #cbd5e1;
}

body.dark-theme .theme-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

body.dark-theme .theme-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

/* COMPREHENSIVE DARK MODE FOR TICKET VIEW AND ALL PAGES */
body.dark-theme,
body.dark-theme * {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

/* Override ALL white and light backgrounds */
body.dark-theme .bg-white,
body.dark-theme .bg-gray-50,
body.dark-theme .bg-gray-100,
body.dark-theme .bg-gray-200,
body.dark-theme .bg-blue-50,
body.dark-theme [class*="bg-gray"],
body.dark-theme [class*="bg-white"],
body.dark-theme [class*="bg-slate"],
body.dark-theme [class*="bg-neutral"] {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

/* Force dark theme on ALL containers and elements */
body.dark-theme div,
body.dark-theme span,
body.dark-theme p,
body.dark-theme td,
body.dark-theme th,
body.dark-theme li,
body.dark-theme section,
body.dark-theme article,
body.dark-theme main,
body.dark-theme aside,
body.dark-theme header,
body.dark-theme footer {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

/* Headers should be bright white */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: #ffffff !important;
    background-color: #1f2937 !important;
}

/* Special handling for field labels */
body.dark-theme .sf-field-label,
body.dark-theme label,
body.dark-theme .block.text-sm.font-medium.text-gray-700 {
    color: #9ca3af !important;
    background-color: #1f2937 !important;
}

/* Card specific overrides */
body.dark-theme .sf-card,
body.dark-theme .sf-card-header,
body.dark-theme .sf-card-body {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}

/* Form elements */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    background-color: #374151 !important;
    color: #e5e7eb !important;
    border-color: #4b5563 !important;
}

/* Buttons */
body.dark-theme button,
body.dark-theme .sf-button,
body.dark-theme .btn {
    background-color: #374151 !important;
    color: #e5e7eb !important;
    border-color: #4b5563 !important;
}

/* Special buttons that should stay colored */
body.dark-theme .bg-blue-600,
body.dark-theme .bg-blue-700,
body.dark-theme .primary-button,
body.dark-theme .btn-primary {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

body.dark-theme .bg-green-600 {
    background-color: #059669 !important;
    color: #ffffff !important;
}

body.dark-theme .bg-red-600 {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

/* Links should be visible */
body.dark-theme a {
    color: #60a5fa !important;
    background-color: transparent !important;
}

/* Tables */
body.dark-theme table,
body.dark-theme tbody,
body.dark-theme thead,
body.dark-theme .sf-data-table,
body.dark-theme .sf-data-table th,
body.dark-theme .sf-data-table td {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}

/* Badges and status indicators */
body.dark-theme .sf-badge,
body.dark-theme .badge {
    background-color: #374151 !important;
    color: #e5e7eb !important;
}

/* Override ALL Tailwind text color classes */
body.dark-theme .text-gray-900,
body.dark-theme .text-gray-800,
body.dark-theme .text-gray-700,
body.dark-theme .text-gray-600,
body.dark-theme .text-gray-500,
body.dark-theme .text-black,
body.dark-theme .text-slate-900,
body.dark-theme .text-slate-800 {
    color: #e5e7eb !important;
}

/* Ensure no white text on white background */
body.dark-theme .text-white {
    color: #e5e7eb !important;
}

/* Toolbar and action areas */
body.dark-theme .sf-toolbar {
    background-color: #111827 !important;
    border-color: #374151 !important;
}

/* Navigation and menus */
body.dark-theme nav,
body.dark-theme .navbar,
body.dark-theme .menu {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

/* Modal overrides */
body.dark-theme .modal,
body.dark-theme .modal-content,
body.dark-theme .modal-header,
body.dark-theme .modal-body,
body.dark-theme .modal-footer {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}

/* NUCLEAR OPTION - OVERRIDE EVERYTHING WITH HIGHEST SPECIFICITY */
body.dark-theme div[class*="bg-"],
body.dark-theme div[class*="white"],
body.dark-theme section[class*="bg-"],
body.dark-theme article[class*="bg-"],
body.dark-theme main[class*="bg-"],
body.dark-theme .rounded-lg,
body.dark-theme .shadow-sm,
body.dark-theme .shadow,
body.dark-theme .container,
body.dark-theme .wrapper,
body.dark-theme .content {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

/* Target the specific white areas visible in the screenshot */
body.dark-theme .max-w-7xl > div,
body.dark-theme .max-w-7xl .bg-white,
body.dark-theme .px-4 > div,
body.dark-theme .px-6 > div,
body.dark-theme .lg\\:px-8 > div {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

/* More specific targeting */
body.dark-theme .bg-white.rounded-lg.shadow-sm.p-6,
body.dark-theme .bg-white.rounded-lg.shadow-sm,
body.dark-theme .bg-white.rounded-lg,
body.dark-theme .rounded-lg.shadow-sm {
    background: #1f2937 !important;
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

/* Ultra-specific card targeting */
body.dark-theme .sf-card .sf-card-body > div,
body.dark-theme .sf-card .sf-card-body .grid,
body.dark-theme .sf-card .sf-card-body .space-y-2,
body.dark-theme .sf-card .sf-card-body .gap-4 {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

/* Force all grid and flex containers */
body.dark-theme .grid > div,
body.dark-theme .flex > div,
body.dark-theme .space-y-2 > div,
body.dark-theme .gap-4 > div {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
}

/* Emergency override for any remaining white areas */
body.dark-theme * {
    background: #1f2937 !important;
    color: #e5e7eb !important;
}

/* But preserve certain colored elements */
body.dark-theme .bg-blue-600,
body.dark-theme .bg-blue-700,
body.dark-theme .text-blue-600,
body.dark-theme .text-blue-700 {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

body.dark-theme .bg-green-600,
body.dark-theme .text-green-600 {
    background-color: #059669 !important;
    color: #ffffff !important;
}

body.dark-theme .bg-red-600,
body.dark-theme .text-red-600 {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

/* Responsive theme switcher */
@media (max-width: 768px) {
    .theme-switcher {
        top: 15px;
        right: 15px;
    }
    
    .theme-options {
        gap: 4px;
        padding: 6px;
    }
    
    .theme-btn {
        padding: 10px 12px;
        font-size: 0.7rem;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .theme-switcher {
        top: 10px;
        right: 10px;
    }
    
    .theme-options {
        flex-direction: column;
        gap: 3px;
        padding: 4px;
    }
    
    .theme-btn {
        padding: 8px 10px;
        font-size: 0.65rem;
        min-width: 60px;
    }
} 
