/**
 * 🎨 HELPDESK NAVY + ELECTRIC BLUE THEME - VERSION 2
 * 
 * STRONGER OVERRIDES - Actually Works!
 * Professional Light & Dark Modes
 * 
 * PRIMARY COLORS:
 * - Navy:          #001f3f (Deep, trustworthy)
 * - Electric Blue: #0066ff (Modern, energetic)
 * - Cyan:          #00d9ff (Bright, accent)
 */

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    --color-primary: #001f3f;
    --color-secondary: #0066ff;
    --color-accent: #00d9ff;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
}

/* ============================================
   LIGHT MODE - BACKGROUND
   ============================================ */

body:not(.dark) {
    background: #f8fafc !important;
    color: #001f3f !important;
}

/* ============================================
   NAVBAR - NAVY + ELECTRIC BLUE GRADIENT
   ============================================ */

.navbar {
    background: linear-gradient(90deg, #001f3f 0%, #0052cc 50%, #0066ff 100%) !important;
    border-bottom: 3px solid #00d9ff !important;
    box-shadow: 0 4px 20px rgba(0, 31, 63, 0.3) !important;
}

.navbar .logo-text {
    background: linear-gradient(135deg, #0066ff, #00d9ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800 !important;
    color: transparent !important;
}

.navbar a {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
}

.navbar a:hover {
    color: #00d9ff !important;
    transition: all 0.3s ease !important;
}

/* ============================================
   ACTION CARDS - PROFESSIONAL
   ============================================ */

.action-card::before {
    background: linear-gradient(90deg, #0066ff, #001f3f) !important;
}

.action-card:hover {
    border-color: #0066ff !important;
    box-shadow: 0 16px 40px rgba(0, 102, 255, 0.2) !important;
}

.action-card.secondary::before {
    background: linear-gradient(90deg, #00d9ff, #0066ff) !important;
}

.action-card.secondary:hover {
    border-color: #00d9ff !important;
    box-shadow: 0 16px 40px rgba(0, 217, 255, 0.15) !important;
}

.action-card a {
    color: #0066ff !important;
}

.action-card a:hover {
    color: #001f3f !important;
}

/* ============================================
   HERO SECTION - LIGHT MODE
   ============================================ */

body:not(.dark) .hero-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
    border: 1px solid #dbeafe !important;
}

body:not(.dark) .hero-section h1 {
    color: #001f3f !important;
}

body:not(.dark) .hero-section p {
    color: #4a5568 !important;
}

/* ============================================
   LOGIN/AUTH PAGES - NAVY + ELECTRIC
   ============================================ */

body:not(.dark) .login-header,
body:not(.dark) .reset-header {
    background: linear-gradient(135deg, #001f3f 0%, #0052cc 50%, #0066ff 100%) !important;
}

body:not(.dark) .login-header h1,
body:not(.dark) .reset-header h1 {
    color: #ffffff !important;
    font-weight: 800 !important;
}

body:not(.dark) .login-header p,
body:not(.dark) .reset-header p {
    color: #00d9ff !important;
    font-weight: 500 !important;
}

body:not(.dark) .logo-icon {
    background: linear-gradient(135deg, #001f3f, #0066ff) !important;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4) !important;
}

body:not(.dark) button[type="submit"] {
    background: linear-gradient(135deg, #0066ff, #0052cc) !important;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4) !important;
    font-weight: 600 !important;
}

body:not(.dark) button[type="submit"]:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.5) !important;
    transform: translateY(-2px) !important;
}

body:not(.dark) .form-input {
    border-color: #dbeafe !important;
    color: #001f3f !important;
}

body:not(.dark) .form-input:focus {
    border-color: #0066ff !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1) !important;
}

/* ============================================
   ADMIN CARD - BUTTON
   ============================================ */

.admin-card {
    background: linear-gradient(135deg, #001f3f 0%, #0052cc 50%, #0066ff 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35) !important;
    font-weight: 600 !important;
    color: white !important;
}

.admin-card:hover {
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.4) !important;
    transform: translateY(-4px) !important;
}

/* ============================================
   BUTTONS - PROFESSIONAL
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #0066ff, #0052cc) !important;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3) !important;
    font-weight: 600 !important;
    border: none !important;
    color: white !important;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* ============================================
   SIDEBAR - NAVY THEME
   ============================================ */

.sidebar {
    background: linear-gradient(180deg, #001f3f 0%, #002952 50%, #001f3f 100%) !important;
    box-shadow: 2px 0 8px rgba(0, 31, 63, 0.2) !important;
}

.sidebar .logo-text {
    background: linear-gradient(135deg, #00d9ff, #60d9ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800 !important;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(0, 102, 255, 0.2), rgba(0, 217, 255, 0.1)) !important;
    border-left-color: #00d9ff !important;
    color: #00d9ff !important;
}

.nav-link:hover {
    background: rgba(0, 217, 255, 0.1) !important;
    border-left-color: #00d9ff !important;
    color: #ffffff !important;
}

/* ============================================
   LINKS - BLUE
   ============================================ */

a {
    color: #0066ff !important;
}

a:hover {
    color: #001f3f !important;
    text-decoration: underline !important;
}

/* ============================================
   TEXT COLORS - PROFESSIONAL
   ============================================ */

.text-primary {
    color: #0066ff !important;
}

.text-secondary {
    color: #00d9ff !important;
}

/* ============================================
   BORDERS
   ============================================ */

.border-primary {
    border-color: #0066ff !important;
}

.border-secondary {
    border-color: #00d9ff !important;
}

/* ============================================
   STATUS BADGES
   ============================================ */

.bg-blue-50 { background: #e3f2fd !important; }
.text-blue-600 { color: #0066ff !important; }
.bg-green-50 { background: #ecfdf5 !important; }
.text-green-600 { color: #10b981 !important; }
.bg-orange-50 { background: #fffbeb !important; }
.text-orange-600 { color: #f59e0b !important; }
.bg-red-50 { background: #fef2f2 !important; }
.text-red-600 { color: #ef4444 !important; }
.bg-cyan-50 { background: #ecfdff !important; }
.text-cyan-600 { color: #00d9ff !important; }

/* ============================================
   DARK MODE - PROFESSIONAL
   ============================================ */

body.dark {
    background: linear-gradient(135deg, #0f172a 0%, #1a1f3a 50%, #0f1420 100%) !important;
    color: #ffffff !important;
}

/* Dark Mode Navbar */
body.dark .navbar {
    background: linear-gradient(90deg, #001f3f 0%, #0052cc 50%, #0066ff 100%) !important;
}

/* Dark Mode Hero */
body.dark .hero-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(26, 31, 58, 0.8) 100%) !important;
    border: 1px solid rgba(0, 217, 255, 0.15) !important;
}

body.dark .hero-section h1 {
    color: #ffffff !important;
}

body.dark .hero-section p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Dark Mode Cards */
body.dark .action-card {
    background: rgba(26, 31, 58, 0.6) !important;
    border-color: rgba(0, 102, 255, 0.2) !important;
}

body.dark .glass-effect {
    background: rgba(26, 31, 58, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 102, 255, 0.1) !important;
}

/* Dark Mode Links */
body.dark a {
    color: #00d9ff !important;
}

body.dark a:hover {
    color: #ffffff !important;
}

/* Dark Mode Buttons */
body.dark button[type="submit"] {
    background: linear-gradient(135deg, #0066ff, #0052cc) !important;
}

/* Dark Mode Inputs */
body.dark input[type="text"],
body.dark input[type="email"],
body.dark input[type="password"],
body.dark textarea,
body.dark select {
    background: rgba(26, 31, 58, 0.5) !important;
    border-color: rgba(0, 102, 255, 0.2) !important;
    color: #ffffff !important;
}

body.dark input[type="text"]:focus,
body.dark input[type="email"]:focus,
body.dark input[type="password"]:focus,
body.dark textarea:focus,
body.dark select:focus {
    border-color: #00d9ff !important;
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.1) !important;
}

/* ============================================
   TRANSITIONS
   ============================================ */

* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f9ff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0066ff, #001f3f);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #001f3f;
}

body.dark ::-webkit-scrollbar-track {
    background: #0f1420;
}

body.dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d9ff, #0066ff);
}

body.dark ::-webkit-scrollbar-thumb:hover {
    background: #0066ff;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    border-top: 1px solid #e2e8f0 !important;
    color: #718096 !important;
}

body.dark footer {
    border-top-color: rgba(0, 217, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem !important;
        box-shadow: 0 2px 10px rgba(0, 31, 63, 0.2) !important;
    }
}