/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Dark Theme (Default) - Premium Slate & Emerald Palette */
    --primary-color: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --primary-dark: #059669;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(51, 65, 85, 0.5);
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --section-gap: clamp(3rem, 10vw, 6rem);
    --card-padding: clamp(1.25rem, 5vw, 2.5rem);
    --glass-bg: rgba(15, 23, 42, 0.5);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.5);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.3);
    --card-glow-bg: linear-gradient(135deg, var(--primary-color), transparent, var(--accent));
}

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

body {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1rem); /* Fluid body text */
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, .hero-title, .page-title {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.8rem, 8vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 5vw, 1.8rem); }
h4 { font-size: clamp(1rem, 4vw, 1.4rem); }

p {
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.92;
}

img {
    max-width: 100%;
    height: auto;
}

/* Fallback for broken logos */
img:not([src]), img[src=""], img[src="null"] {
    visibility: hidden;
    position: relative;
}
img:not([src]):after, img[src=""]:after, img[src="null"]:after {
    content: "\f1ad";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    visibility: visible;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 1.2rem;
    border-radius: inherit;
}

/* Fix for oval elements */
.logo-shield, .modal-close-btn, .brand-logo-container {
    flex-shrink: 0;
}
img[style*="border-radius: 50%"], img[style*="border-radius: 20px"], img[style*="border-radius: 12px"] {
    flex-shrink: 0;
}


/* Glassmorphism Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
}

/* Dynamic Logo Wrapper */
.logo-wrapper {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.2));
}

.logo-shield {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.4), inset 0 0 5px rgba(255,255,255,0.5);
    border: 1.5px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.logo-shield i {
    color: #0f172a;
    font-size: 1.2rem;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 950;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 45%, #b38728 50%, #fbf5b7 55%, #aa771c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    opacity: 0.7;
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-links a i {
    font-size: 0.95rem;
    color: var(--primary-color);
    transition: var(--transition);
}

/* Hover & Active Effects */
.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--primary-color);
    background: rgba(16, 185, 129, 0.06);
    transform: translateY(-2px);
}

.nav-links a:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* Bottom line glow effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    cursor: pointer;
    z-index: 10001;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 4px;
    transition: var(--transition);
    transform-origin: left center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    background-color: var(--primary-color);
}

.menu-toggle.active span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    background-color: var(--primary-color);
}

/* Base Layout */
main {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Premium Glass Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
    padding: var(--card-padding);
}

.hero-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: var(--card-padding);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
    margin: var(--section-gap) auto;
    max-width: 1200px;
    z-index: 10;
    position: relative;
}

.hero-badge {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.06);
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

@media (max-width: 768px) {
    .hero-badge {
        padding: 8px 16px;
        letter-spacing: 1px;
        border-radius: 16px;
    }
}

.brand-logo-container {
    width: 48px !important;
    height: 48px !important;
    background: #fff !important;
    padding: 6px !important;
    border-radius: var(--border-radius-sm) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color) !important;
    flex-shrink: 0 !important;
    transition: var(--transition);
}

.brand-logo-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1.5px solid var(--border-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar for sidebars */
.route-sidebar::-webkit-scrollbar,
.map-sidebar::-webkit-scrollbar {
    width: 4px;
}
.route-sidebar::-webkit-scrollbar-track,
.map-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.route-sidebar::-webkit-scrollbar-thumb,
.map-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

/* Responsive Breakpoints */

/* Tablet & Small Laptop */
/* Tablet & Large Laptop - Switch to mobile menu earlier due to many nav items */
@media (max-width: 1200px) {
    main { margin-top: 70px; }
    .container { padding: 0 1rem; }
    
    .site-logo-img {
        height: 40px;
    }

    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0; 
        width: 80%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 4.5rem 0 3rem 0; /* Clear top AND bottom for height compatibility */
        gap: 0;
        z-index: 10001;
        overflow-y: auto; /* Scrollable list */
        overflow-x: hidden;
        border-left: 1px solid rgba(255,255,255,0.1);
        box-shadow: -20px 0 50px rgba(0,0,0,0.8);
        transform: translateX(100%); /* Start off-screen */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    }

    .nav-links.active {
        transform: translateX(0); /* Slide in */
    }
    
    /* Overlay behind the menu */
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 10000;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex !important;
        z-index: 10002; /* Above everything */
    }

    .notification-wrapper {
        margin-left: auto;
        margin-right: 1.5rem;
    }

    .nav-links li { 
        width: 100%; 
        list-style: none;
    }
    
    .nav-links a {
        font-size: 0.95rem;
        width: 100%;
        text-align: left;
        padding: 0.5rem 2rem; /* Reduced from 0.75rem to minimize gaps */
        color: #f1f5f9;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        display: flex;
        align-items: center;
        gap: 1.2rem;
        transition: all 0.2s ease;
        font-weight: 600;
        min-height: 48px; /* Standard touch target height */
    }
    
    .nav-links a i {
        width: 20px; /* Smaller icons */
        color: var(--primary-color);
        font-size: 1.1rem;
        opacity: 0.8;
    }
    
    .nav-links a:hover, .nav-links a.active {
        background: rgba(16, 185, 129, 0.1);
        color: var(--primary-color);
        padding-left: 2.2rem;
    }

    .menu-toggle span {
        width: 28px;
        height: 2px;
        background: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: #ef4444;
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: #ef4444;
    }

    /* Page Specific Mobile Fixes */
    .page-header-title { display: none !important; }
    .map-wrapper { height: 82vh !important; min-height: 480px !important; display: flex !important; flex-direction: column !important; margin-top: 0 !important; grid-template-columns: 1fr !important; width: 100% !important; overflow: hidden !important; border-radius: 0 !important; }
    .map-main { height: 100% !important; flex: 1 !important; visibility: visible !important; border-radius: 0 !important; }
}

/* Tablet Portrait & Mobile Layout Tweak */
@media (max-width: 768px) {
    main { margin-top: 60px; }
    .container { padding: 0 1rem; }
    
    /* General Mobile Compactness */
    .section-title { font-size: 1.6rem; margin-bottom: 1.5rem; }
    
    section { padding: 3rem 0 !important; }
    
    .card { padding: 1.25rem !important; }
    
    /* Global Box Responsiveness Fix */
    [style*="padding: 2.5rem"], 
    [style*="padding: 3rem"],
    [style*="padding: 4rem"],
    [style*="padding: 5rem"],
    [style*="padding: 6rem"] {
        padding: 2rem 1rem !important;
    }
    
    [style*="margin-bottom: 3.5rem"],
    [style*="margin-bottom: 4rem"],
    [style*="margin-bottom: 5rem"] {
        margin-bottom: 2rem !important;
    }

    /* Page Specific Mobile Fixes */
    .page-header-title { display: none !important; }
    .animate-fade-in { padding: 0 !important; }
    .map-wrapper { height: 75vh !important; min-height: 400px !important; display: flex !important; flex-direction: column !important; margin-top: 0 !important; width: 100% !important; overflow: hidden !important; border-radius: 0 !important; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nav-container { padding: 0.5rem 1rem; gap: 0.8rem; }
    .logo-text { font-size: 1.1rem; }
    .logo-shield { width: 32px; height: 32px; }
    .site-logo-img { height: 36px; }
    
    .notification-wrapper {
        margin-right: 1rem;
    }

    .btn { width: 100%; padding: 0.9rem 1.2rem; font-size: 0.85rem; }
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.4rem !important; }
    
    .filter-container { padding: 0.5rem !important; gap: 0.4rem !important; }
    :root { --card-padding: 1rem; }
    
    .price-card { padding: 1rem !important; }
    .stats-grid-main { grid-template-columns: 1fr !important; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* Premium Modal System */
.premium-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(0px, 5vw, 20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.premium-modal-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlide {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
    position: sticky;
    top: 20px;
    float: right;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .premium-modal-content {
        border-radius: 24px;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .premium-modal-overlay {
        padding: 0;
    }
    .premium-modal-content {
        height: 100%;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }
    .modal-close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* Map Fullscreen Styles Moved to page specific files if needed */
.map-container-wrapper { position: relative; }
.map-maximize-btn {
    position: absolute; top: 15px; right: 60px; z-index: 1000;
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); color: #fff;
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s; font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.map-maximize-btn:hover { background: var(--primary-color); color: #000; transform: scale(1.05); }

/* Breadcrumb Styles */
.breadcrumb-nav {
    padding: 1rem 0;
    margin-bottom: 0.5rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0.75rem 1.25rem;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 0.7rem;
    opacity: 0.5;
    color: #fff;
}

.breadcrumb-item.active {
    color: #fff;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

@media (max-width: 768px) {
    .breadcrumb-list {
        padding: 0.5rem 1rem;
    }
    .breadcrumb-item.active {
        max-width: 120px;
    }
}


/* Notification System */
.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

.notification-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    padding: 0;
}

.notification-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
    z-index: 2;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -5px;
    width: 340px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 10002;
    transform-origin: top right;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Arrow for the dropdown */
.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #0f172a; /* matches bg-dark */
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
    z-index: -1;
}

@keyframes slideDown {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.notification-dropdown.active {
    display: flex;
}

.notification-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    font-size: 1rem;
    margin: 0;
}

.notification-header button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.8;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 1rem;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.notification-item:hover { background: rgba(255, 255, 255, 0.03); }

.notif-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(59, 130, 246, 0.1); color: #60a5fa;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}

.notification-item.success .notif-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.notification-item.warning .notif-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.notification-item.danger .notif-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.notif-content { flex: 1; overflow: hidden; }
.notif-title { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.notif-text { font-size: 0.8rem; color: #94a3b8; line-height: 1.4; margin-bottom: 0.3rem; overflow-wrap: anywhere; word-break: break-word; }
.notif-time { font-size: 0.7rem; color: #475569; font-weight: 600; }

.notification-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.notification-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.notification-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }
    
}

/* CUSTOM SELECT FOR TESLA BROWSER COMPATIBILITY */
.custom-select-container { position: relative; width: 100%; user-select: none; margin-bottom: 10px; }
.custom-select-trigger { 
    height: 52px; background: #0f172a; border: 2px solid var(--primary-color); 
    border-radius: 12px; display: flex; align-items: center; 
    justify-content: space-between; padding: 0 15px; cursor: pointer;
    color: #fff; font-weight: 800; font-size: 1rem; transition: 0.3s;
}
.custom-select-trigger:hover { background: rgba(16, 185, 129, 0.05); }
.custom-options {
    position: absolute; top: 60px; left: 0; right: 0; 
    background: #0f172a; border: 2px solid var(--primary-color); 
    border-radius: 12px; z-index: 200000 !important; 
    max-height: 300px !important; 
    overflow-y: auto !important; 
    display: none; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}
.custom-options::-webkit-scrollbar { width: 6px; }
.custom-options::-webkit-scrollbar-track { background: transparent; }
.custom-options::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }

.custom-option { 
    padding: 14px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); 
    cursor: pointer; transition: 0.2s; font-weight: 600; font-size: 0.95rem; color: #fff;
    display: flex; align-items: center; justify-content: space-between;
}
.custom-option:hover { background: rgba(16, 185, 129, 0.15); color: var(--primary-color); }
.custom-select-container.open .custom-options { display: block; }
