/* ================= JUSTGLOW UNIFIED COLOR PALETTE ================= */
:root {
    /* ONLY these colors - Unified purple palette */
    --primary: #9333ea;              /* Vibrant purple - Main brand color */
    --primary-dark: #7e22ce;         /* Darker purple for hover/focus */
    --accent: #d8b4fe;               /* Light purple accent */
    --text-dark: #1f2937;            /* Dark text */
    --text-light: #f3f4f6;           /* Light text for dark backgrounds */
    --white: #ffffff;                /* White */
    --bg-light: #f9fafb;             /* Light background */
    
    /* Additional purple shades */
    --purple-lighter: #f3e8ff;       /* Very light purple */
    --purple-lightest: #faf5ff;      /* Lightest purple background */
    
    /* Navbar & Footer specific */
    --jg-primary: var(--primary);
    --jg-primary-dark: var(--primary-dark);
    --jg-bg-glass: rgba(255, 255, 255, 0.95); /* Glass effect */
    --jg-text-dark: var(--text-dark);
    --jg-text-light: #6b7280;
    --jg-shadow: 0 4px 20px rgba(147, 51, 234, 0.08); /* Purple-tinted shadow */
    --jg-font: 'Inter', sans-serif;
}

/* ================= BODY SPACING ================= */
/* Add padding so content doesn't hide behind fixed nav */
body {
    padding-top: 80px; 
}

@media (max-width: 991px) {
    body {
        padding-top: 70px !important;
    }
}

/* ================= DESKTOP NAVBAR (.jg-navbar) ================= */
/* Base styles - visible on desktop */
.jg-navbar {
    background-color: var(--jg-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1020 !important;
    box-shadow: var(--jg-shadow);
    padding: 0.8rem 0;
    font-family: var(--jg-font);
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
}

/* Ensure desktop navbar is hidden on mobile */
.jg-navbar.d-none.d-lg-flex {
    display: none !important; /* Hidden by default on mobile (d-none) */
}

@media (min-width: 992px) {
    /* On desktop (>= 992px), show navbar with flex */
    .jg-navbar.d-none.d-lg-flex {
        display: flex !important;
    }
}

/* Ensure desktop navbar is visible on desktop screens (>= 992px) */
@media (min-width: 992px) {
    /* Force desktop navbar to be visible - override Bootstrap d-none d-lg-flex */
    .jg-navbar.d-none.d-lg-flex,
    nav.jg-navbar.d-none.d-lg-flex {
        display: flex !important; /* Use flex (matches Bootstrap's d-lg-flex) */
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1020 !important;
    }
    
    /* Ensure desktop navbar is visible regardless of classes */
    nav.jg-navbar,
    .jg-navbar:not(#mobileNavbar) {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1020 !important;
    }
    
    /* Ensure container and all child elements are visible */
    .jg-navbar .container {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* Ensure nav lists are visible */
    .jg-navbar .nav,
    .jg-navbar .navbar-nav,
    .jg-navbar ul.nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-direction: row !important;
        align-items: center !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Ensure nav items are visible */
    .jg-navbar .nav-item,
    .jg-navbar li.nav-item {
        display: list-item !important;
        visibility: visible !important;
        opacity: 1 !important;
        list-style: none !important;
    }
    
    /* Ensure nav links are visible */
    .jg-navbar .nav-link,
    .jg-navbar a.nav-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
    }
    
    /* Ensure logo is visible */
    .jg-navbar .navbar-brand,
    .jg-navbar a.navbar-brand {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
    }
    
    /* Ensure logo image is visible */
    .jg-navbar .navbar-brand img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide mobile navbar on desktop */
    #mobileNavbar,
    nav#mobileNavbar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        top: -9999px !important;
    }
    
    /* Body padding for desktop navbar */
    body {
        padding-top: 80px !important;
    }
}

.jg-navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* Navigation Links */
.jg-navbar .nav-link {
    color: var(--jg-text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.jg-navbar .nav-link i {
    color: var(--jg-primary); /* Purple Icons */
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.jg-navbar .nav-link:hover,
.jg-navbar .nav-link.active {
    background-color: rgba(147, 51, 234, 0.08);
    color: var(--jg-primary) !important;
}

.jg-navbar .nav-link:hover i {
    transform: scale(1.1);
}

/* Dropdowns */
.jg-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 12px;
    margin-top: 15px;
    animation: slideUp 0.3s ease forwards;
}

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

/* Special Button Styling (Sign Up) */
.btn-primary-glow {
    background: linear-gradient(135deg, var(--jg-primary) 0%, var(--jg-primary-dark) 100%);
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}
.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}
.btn-primary-glow i { color: white !important; }






/* ================= MOBILE NAVBAR ================= */
#mobileNavbar {
    background-color: var(--jg-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--jg-shadow);
    height: 70px;
    padding: 0;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
}

/* Force mobile navbar visibility on mobile, hide desktop */
@media (max-width: 991px) {
    #mobileNavbar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Hide desktop navbar on mobile */
    .jg-navbar {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

@media (max-width: 991px) {
    body {
        padding-top: 70px !important;
    }
    
    /* Ensure mobile navbar is always visible on mobile */
    #mobileNavbar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #mobileNavbar .container,
    /* Ensure the container allows absolute positioning inside it */
    #mobileNavbar .container-fluid {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important; /* Pushes Hamburger Left and Logo Right */
        position: relative !important; /* Critical for the bell positioning */
    }


    /* NEW: The container for the bell */
    .mobile-center-container {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important; /* Perfect center */
        z-index: 10; /* Ensure it stays on top of other elements */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #mobileNavbar .d-flex {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem;
    }
    
    /* Mobile Hamburger Button - Unified Purple */
    #mobileNavbar .jg-app-mobile-hamburger,
    .jg-app-mobile-hamburger {
        background: var(--primary) !important;
        border: none !important;
        color: var(--white) !important;
        font-size: 1.25rem !important;
        padding: 0.5rem !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        box-shadow: 0 2px 8px rgba(147, 51, 234, 0.2) !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        z-index: 1031 !important;
    }
    
    #mobileNavbar .jg-app-mobile-hamburger:hover,
    .jg-app-mobile-hamburger:hover {
        background: var(--primary-dark) !important;
        transform: scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3) !important;
        color: var(--white) !important;
    }
    
    #mobileNavbar .jg-app-mobile-hamburger:active,
    .jg-app-mobile-hamburger:active {
        transform: scale(0.95) !important;
    }
    
    /* Mobile Notification Button */
    #mobileNavbar .mobile-notification-btn,
    .mobile-notification-btn {
        background: transparent !important;
        border: none !important;
        color: var(--primary) !important;
        font-size: 1.3rem !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        position: relative !important;
    }
    
    #mobileNavbar .mobile-notification-btn:hover,
    .mobile-notification-btn:hover {
        background: var(--purple-lighter) !important;
        color: var(--primary-dark) !important;
        transform: scale(1.05) !important;
    }
    
    /* 3. Logo (Right) */
    #mobileNavbar .navbar-brand {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important; /* Forces image to the right inside the link */
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #mobileNavbar .navbar-brand img {
        height: 64px !important;
        width: auto !important;
        display: block !important;
    }
}

/* Badges - Keep red for notifications/errors (universal) */
.notification-badge, 
.badge.bg-danger {
    background-color: #ef4444 !important; /* Keep red for errors - universal */
    color: white !important;
    border: 2px solid white;
    border-radius: 50% !important;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -3px;
    right: -3px;
}


/* ================= PREMIUM FOOTER CSS ================= */
:root {
    --bg-deep: #1A0B2E;       /* Deep Midnight Purple */
    --text-white: #FFFFFF;    /* Pure White */
    --text-gray: #B8B8D1;     /* Soft Lavender Gray */
    --accent-gold: #D4AF37;   /* Champagne Gold */
}

.footer {
    background-color: var(--bg-deep) !important;
/* ================= TRANSPARENT LUXURY FOOTER ================= */

/* 1. Force Transparency & Layout */
.footer {
    background: transparent !important; /* Keeps the "Happy Accident" */
    padding-top: 40px;
    padding-bottom: 30px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 10;
}

/* 2. HEADERS (Gold Underline remains) */
.footer-title {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    /* subtle shadow to make it pop against the network lines */
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); 
}

.footer-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: #D4AF37; /* Gold Accent */
    margin-top: 8px;
    border-radius: 2px;
}

/* 3. LINKS & TEXT (The Visibility Fix) */
.footer-links a, 
.footer-description, 
.footer-contact p,
.footer-bottom p {
    color: #ffffff !important; /* Pure White (Was Gray before) */
    font-weight: 500; /* Made slightly thicker to be readable */
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    /* A tight shadow ensures text is readable even if a line crosses it */
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.footer-links li {
    margin-bottom: 15px; /* More breathing room */
}

/* 4. ICONS (White by default) */
.footer-links i, 
.footer-contact i {
    color: #ffffff !important;
    font-size: 18px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

/* 5. THE PURPLE HIGHLIGHT (Hover Effect) */
.footer-links a:hover {
    color: #E040FB !important; /* Bright Neon Purple */
    transform: translateX(5px); /* Slide right */
    text-shadow: 0 0 8px rgba(224, 64, 251, 0.6); /* Glow effect */
}

.footer-links a:hover i {
    color: #E040FB !important; /* Icon turns purple too */
    transform: scale(1.1);
}

/* 6. SOCIAL ICONS */
.social-media a {
    width: 40px;
    height: 40px;
    border: 1.5px solid #ffffff; /* Thicker white border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    margin-right: 10px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1); /* Slight glass fill */
}

.social-media a:hover {
    background: #E040FB; /* Purple Background */
    border-color: #E040FB;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 64, 251, 0.4);
}

/* 7. APP CARD (Dark Glass to stand out on transparent bg) */
.app-card {
    background: rgba(0, 0, 0, 0.4); /* Dark semi-transparent box */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
}

.app-card-title {
    color: #fff;
    font-weight: 600;
    margin-top: 5px;
}

.btn-download {
    background: #fff;
    color: #333;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.btn-download:hover {
    background: #E040FB; /* Purple button on hover */
    color: #fff;
}

