/* Top navigation bar*/
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0; 
    width: auto; 
    box-sizing: border-box;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 20px;
    height: 70px;
    transition: transform 0.3s ease-in-out;
}

/* Hide navbar on scroll down */
.top-navbar.nav-hidden {
    transform: translateY(-100%);
}

.nav-brand a {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
    margin-right: 40px;
}

.nav-groups {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 30px;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
}

.nav-right {
    margin-left: auto;
    border-left: none;
    border-right: 2px solid var(--border-color);
    padding-right: 20px;
}

.nav-group-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: bold;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.nav-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.nav-highlight {
    background: var(--primary-gradient);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-highlight:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.nav-danger {
    color: var(--danger);
}

.nav-text {
    color: var(--text-medium);
}

/* Mobile navigation */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
    color: var(--text-dark);
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: block; 
    }

    .nav-groups {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 10px 0;
        gap: 0;
    }

    .nav-groups.mobile-active {
        display: flex; 
    }

    .nav-group {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 20px;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-right {
        margin-left: 0;
        border-right: none;
        padding-right: 20px;
    }
}

/* Footer  */
.site-footer {
    background-color: var(--secondary); 
    color: #ecf0f1;
    padding: 40px 0 0 0;
    margin-top: 50px;
    border-top: 4px solid var(--primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 20px 30px 20px;
}

.footer-label {
    color: #bdc3c7;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid #7f8c8d;
    padding-bottom: 5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.report-link {
    color: #e74c3c !important;
    font-weight: bold;
}

.footer-bottom {
    background-color: #1a252f;
    text-align: left;
    padding: 15px;
    font-size: 13px;
    color: #7f8c8d;
}