/* Global body spacing for sticky navbar */
body {
    padding-top: 90px; /* Account for navbar height */
}

/* Navbar Styling - Standardized across all pages */
.navbar.navbar-expand-lg.navbar-light {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    width: 100%;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: #253856 !important;
    font-weight: 500;
    padding: 0.8rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #b89c61 !important;
    background-color: rgba(184, 156, 97, 0.1);
    border-radius: 6px;
}

.navbar-nav .nav-link.active {
    color: #b89c61 !important;
    background-color: rgba(184, 156, 97, 0.1);
    border-radius: 6px;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #b89c61;
    border-radius: 1px;
}

/* Language Switcher */
.language-switcher {
    margin-left: auto;
}

.language-switcher .btn {
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.language-switcher .btn:hover {
    border-color: #b89c61;
    color: #b89c61;
}

.language-switcher .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0.5rem 0;
}

.language-switcher .dropdown-item {
    padding: 0.7rem 1.2rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.language-switcher .dropdown-item:hover {
    background-color: rgba(184, 156, 97, 0.1);
    color: #b89c61;
}

.language-switcher img {
    width: 18px;
    height: auto;
    margin-right: 8px;
}

/* Auth Buttons */
.btn-abam {
    background: linear-gradient(135deg, #b89c61, #a58447);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-abam:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 156, 97, 0.4);
    color: white;
    text-decoration: none;
}

.btn-abam-outline {
    background: transparent;
    border: 2px solid #b89c61;
    color: #b89c61;
    padding: 0.5rem 1.3rem;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-abam-outline:hover {
    background: #b89c61;
    color: white;
    text-decoration: none;
    border-color: #b89c61;
}

/* User Profile Menu */
.profile-menu,
.dropdown .btn-abam-outline.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0.5rem 0;
    min-width: 200px;
}

.dropdown-header {
    font-weight: 600;
    color: #b89c61 !important;
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem 0.5rem;
}

.dropdown-divider {
    margin: 0.3rem 1.2rem;
    border-color: #e2e8f0;
}

.dropdown-item {
    padding: 0.7rem 1.2rem;
    color: #64748b;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: right;
}

.dropdown-item:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    /* Adjust body padding for mobile navbar height */
    body {
        padding-top: 80px; /* Slightly less padding on mobile */
    }
    
    /* Show hamburger menu on mobile */
    .hamburger {
        display: inline-block;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1019;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem !important;
        margin: 0.2rem 0;
        border-radius: 8px;
    }
    
    .language-switcher {
        margin: 1rem 0;
        text-align: center;
    }
    
    .btn-abam,
    .btn-abam-outline {
        margin: 0.3rem;
        display: inline-block;
    }
}

/* Hamburger Menu Styling */
.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: none; /* Hidden by default on desktop */
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #253856;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}

.bar1 { top: 0; }
.bar2, .bar3 { top: 8px; }
.bar4 { bottom: 0; }

.checkbox1:checked + label > .hamburger > .bar1 {
    transform: rotate(45deg);
    top: 8px;
}

.checkbox1:checked + label > .hamburger > .bar2,
.checkbox1:checked + label > .hamburger > .bar3 {
    opacity: 0;
}

.checkbox1:checked + label > .hamburger > .bar4 {
    transform: rotate(-45deg);
    bottom: 8px;
}

.visuallyHidden {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}