/* ============================================
   CRIME REPORTING PLATFORM
   Premium Dynamic Design System
   Version: 3.0 | Professional Grade
   ============================================ */

/* ============ PREMIUM DESIGN TOKENS ============ */
:root {
    /* Primary Colors - Legal Authority */
    --primary-deepest: #0a0f1a;
    --primary-dark: #0a1e3c;
    --primary: #1e3a6f;
    --primary-light: #2c4c8c;
    --primary-lighter: #3a5fa0;
    
    /* Gold Accents - Excellence & Prestige */
    --gold-dark: #9d7a2c;
    --gold: #c9a03d;
    --gold-light: #d4b45a;
    --gold-lighter: #e6d19b;
    
    /* Neutral Colors */
    --dark: #1a1a2e;
    --gray-dark: #2d2d3a;
    --gray: #4a4a5a;
    --gray-light: #6d6d7d;
    --light: #f8f9fa;
    --white: #ffffff;
    
    /* Semantic Colors */
    --success: #2e7d32;
    --success-light: #4caf50;
    --danger: #c62828;
    --danger-light: #e53935;
    --warning: #f57c00;
    --warning-light: #ff9800;
    --info: #0288d1;
    --info-light: #03a9f4;
    
    /* Typography */
    --heading-font: 'Playfair Display', 'Georgia', serif;
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --shadow-gold: 0 8px 20px rgba(201, 160, 61, 0.2);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ GLOBAL STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e9edf2 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============ PREMIUM NAVIGATION ============ */
.navbar {
    background: linear-gradient(135deg, var(--primary-deepest) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    padding: 0;
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 2px solid var(--gold);
}

.navbar .container {
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid rgba(201, 160, 61, 0.3);
    transition: var(--transition);
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 15px rgba(201, 160, 61, 0.3);
}

.navbar-brand span {
    background: linear-gradient(135deg, #fff, var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand:hover i {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: var(--gold) !important;
    background: rgba(201, 160, 61, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--gold) !important;
    background: rgba(201, 160, 61, 0.15);
}

/* Register Button */
.register-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white !important;
    box-shadow: 0 4px 12px rgba(201, 160, 61, 0.3);
}

.register-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 160, 61, 0.4);
    color: white !important;
}

/* Login Button */
.login-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    color: var(--gold) !important;
}

/* ============ PREMIUM HERO SECTION ============ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 30, 60, 0.95) 0%, rgba(30, 58, 111, 0.9) 100%),
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3') center/cover fixed;
    padding: 100px 0;
    margin-bottom: 0;
    overflow: hidden;
}

.hero-section h1 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* ============ PREMIUM CARDS ============ */
.card {
    background: var(--white);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* ============ STATISTICS CARDS ============ */
.stat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(201, 160, 61, 0.2);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0.5rem 0;
}

/* ============ STATUS BADGES ============ */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, var(--warning), #e65100);
    color: white;
}

.status-under_review {
    background: linear-gradient(135deg, var(--info), #01579b);
    color: white;
}

.status-investigating {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
}

.status-resolved {
    background: linear-gradient(135deg, var(--success), #1b5e20);
    color: white;
}

.status-rejected {
    background: linear-gradient(135deg, var(--danger), #b71c1c);
    color: white;
}

/* ============ PREMIUM BUTTONS ============ */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.btn-dark {
    background: var(--dark);
    color: white;
}

.btn-dark:hover {
    background: var(--gray-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* ============ PREMIUM FORMS ============ */
.form-control, .form-select {
    border: 2px solid #e0e3e8;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 160, 61, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* ============ PREMIUM TABLES ============ */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(201, 160, 61, 0.05);
}

/* ============ PREMIUM ALERTS ============ */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.4s ease;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #1b5e20;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #b71c1c;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: linear-gradient(135deg, #e1f5fe, #b3e5fc);
    color: #01579b;
    border-left: 4px solid var(--info);
}

/* ============ PREMIUM FOOTER ============ */
footer {
    background: linear-gradient(135deg, var(--primary-deepest), var(--charcoal));
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    border-top: 3px solid var(--gold);
}

footer h5, footer h6 {
    color: var(--gold-light);
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--gold);
    text-decoration: none;
}

/* ============ PREMIUM MODAL ============ */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1.25rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand i {
        font-size: 1.4rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* ============ UTILITY CLASSES ============ */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--gold) !important; }
.text-muted { color: var(--gray-light) !important; }

.bg-primary { background: var(--primary) !important; }
.bg-secondary { background: var(--gold) !important; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }

/* ============ PREMIUM SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--gold), var(--primary));
}

/* ============================================
   PREMIUM FOOTER STYLES
   ============================================ */

   .premium-footer {
    background: linear-gradient(135deg, #0a0f1a 0%, #0a1e3c 50%, #0a0f1a 100%);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    border-top: 3px solid var(--gold);
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Footer Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.footer-brand i {
    font-size: 2rem;
    color: var(--gold);
}

.footer-brand span {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Footer Contact */
.footer-contact p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    width: 25px;
    color: var(--gold);
    font-size: 1rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--gold);
}

/* Footer Headings */
.premium-footer h5 {
    color: var(--gold-light);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.premium-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Office Hours */
.office-hours {
    color: rgba(255, 255, 255, 0.7);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.hours-time {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hours-time.emergency {
    color: var(--gold);
}

.emergency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 160, 61, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.legal-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(201, 160, 61, 0.3);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(201, 160, 61, 0.4);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .premium-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .copyright {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .premium-footer h5::after {
        width: 30px;
    }
    
    .hours-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .emergency-badge {
        width: 100%;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-overlay.active {
    display: flex;
}

.spinner-premium {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(201, 160, 61, 0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Announcements Banner Styles */
.announcements-container {
    position: relative;
    z-index: 100;
}

.announcement-banner {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
    animation: slideDown 0.5s ease;
}

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

.announcement-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #01579b;
    border-left: 4px solid #0288d1;
}

.announcement-success {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #1b5e20;
    border-left: 4px solid #4caf50;
}

.announcement-warning {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.announcement-danger {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #b71c1c;
    border-left: 4px solid #f44336;
}

.announcement-content {
    flex: 1;
}

.announcement-content strong {
    display: inline-block;
    margin-right: 15px;
}

.announcement-message {
    display: inline-block;
}

.announcement-message p {
    margin: 0;
    display: inline;
}

.announcement-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    color: inherit;
}

.announcement-close:hover {
    opacity: 1;
}

/* Mobile responsive announcements */
@media (max-width: 768px) {
    .announcement-content {
        font-size: 12px;
    }
    
    .announcement-content strong {
        display: block;
        margin-bottom: 5px;
    }
    
    .announcement-message {
        display: block;
    }
}
/* ============================================
   ANNOUNCEMENT TOAST NOTIFICATIONS
   ============================================ */

   .announcement-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 380px;
    min-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideInRight 0.5s ease forwards;
    border-left: 4px solid;
    overflow: hidden;
    transition: all 0.3s ease;
}

.announcement-toast:hover {
    transform: translateX(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Toast Types */
.announcement-toast.announcement-info {
    border-left-color: #0288d1;
    background: linear-gradient(135deg, #ffffff, #e1f5fe);
}

.announcement-toast.announcement-success {
    border-left-color: #4caf50;
    background: linear-gradient(135deg, #ffffff, #e8f5e9);
}

.announcement-toast.announcement-warning {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, #ffffff, #fff3e0);
}

.announcement-toast.announcement-danger {
    border-left-color: #f44336;
    background: linear-gradient(135deg, #ffffff, #ffebee);
}

/* Toast Content */
.toast-content {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    gap: 12px;
}

.toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(201, 160, 61, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #c9a03d;
}

.toast-message {
    flex: 1;
}

.toast-message strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #1e3a6f;
}

.toast-message p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    padding: 5px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Multiple Toasts - Stack them */
.announcement-toast:first-child {
    bottom: 20px;
}
.announcement-toast:nth-child(2) {
    bottom: 110px;
}
.announcement-toast:nth-child(3) {
    bottom: 200px;
}
.announcement-toast:nth-child(4) {
    bottom: 290px;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .announcement-toast {
        left: 10px;
        right: 10px;
        max-width: none;
        min-width: auto;
        bottom: 10px;
    }
    
    .announcement-toast:nth-child(2) {
        bottom: 100px;
    }
    .announcement-toast:nth-child(3) {
        bottom: 190px;
    }
    .announcement-toast:nth-child(4) {
        bottom: 280px;
    }
}
@media (max-width: 767px) {
    .desktop-nav {
        display: none;
    }
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}
/* Force bottom navigation to show on all pages */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3a6f, #0a1e3c);
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px;
    z-index: 10000;
    border-top: 1px solid rgba(201, 160, 61, 0.3);
}

/* Show on mobile only */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
    }
    body {
        padding-bottom: 70px !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}
/* ============ MOBILE TOP HEADER ============ */
.mobile-top-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-bottom: 2px solid var(--gold);
    padding: 0 15px;
    align-items: center;
    justify-content: space-between;
    z-index: 2000;
    box-shadow: var(--shadow-md);
}

.mobile-top-header .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-top-header .brand i {
    color: var(--gold);
    font-size: 1.3rem;
}

.mobile-top-header .user-menu {
    position: relative;
}

.mobile-top-header .menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.mobile-top-header .menu-btn:active {
    background: rgba(201, 160, 61, 0.2);
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .mobile-top-header {
        display: flex;
    }
    body {
        padding-top: 60px !important;
    }
    .desktop-nav {
        display: none !important;
    }
}

/* ============ PREMIUM PWA INSTALL PROMPT ============ */
.premium-install-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.install-card {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(201, 160, 61, 0.2);
    position: relative;
    animation: cardSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.install-card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 40px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.install-card-header i {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

.install-card-body {
    padding: 30px 20px;
    text-align: center;
}

.install-card-body h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.install-card-body p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 25px;
}

.install-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-install {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.btn-install:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-later {
    background: #f0f2f5;
    border: none;
    padding: 12px;
    border-radius: 12px;
    color: var(--gray);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-later:hover {
    background: #e4e6e9;
    color: var(--dark);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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


/* PWA Install Prompt Logo */
.install-logo {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    border: 3px solid var(--gold);
    margin: 10px auto 20px auto;
    display: block;
}
