body {
    font-family: 'Poppins', sans-serif;
}

/* Header icons container */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.25rem;
    color: #25a75b;
    cursor: pointer;
    position: relative;
}

.header-icon {
    position: relative;
}

/* Dropdown for user icon */
.user-dropdown {
    position: absolute;
    top: 2.75rem;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
    width: 200px;
    display: none;
    flex-direction: column;
    z-index: 100;
}

.user-dropdown a {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #25a75b;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a i {
    font-size: 1.1rem;
    color: #25a75b;
    min-width: 20px;
    text-align: center;
}

.user-dropdown a:hover,
.user-dropdown a:focus {
    background-color: #25a75b;
    color: white;
    outline: none;
}

/* Show dropdown when active */
.user-dropdown.show {
    display: flex;
}

/* Remove default focus outline for icons but keep visible focus */
.header-icon:focus-visible {
    outline: 2px solid #25a75b;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Menu button always visible */
#menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #25a75b;
    font-size: 1.75rem;
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 0.5rem;
    user-select: none;
    z-index: 70;
    position: relative;
    width: 56px;
    height: 56px;
}

#menu-btn img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: invert(26%) sepia(82%) saturate(2551%) hue-rotate(96deg) brightness(92%) contrast(89%);
}

#menu-btn:focus-visible {
    outline: 2px solid #25a75b;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Custom mobile menu styles */
#custom-mobile-menu {
    transition: opacity 0.3s ease;
    width: 320px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 60;
    display: none;
    overflow: hidden;
}

#custom-mobile-menu.active {
    display: block;
}

/* Container inside mobile menu */
#custom-mobile-menu > div {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 2px 0 8px rgb(0 0 0 / 0.15);
    width: 320px;
    overflow: hidden;
    position: relative;
}

/* Mobile menu header */
#custom-mobile-menu .header-top {
    position: sticky;
    top: 0;
    background: white;
    z-index: 80;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    height: 64px;
}

#custom-mobile-menu .header-top a {
    display: flex;
    align-items: center;
    height: 48px;
}

#custom-mobile-menu .header-top img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

/* Close button in mobile menu */
#custom-mobile-menu-close {
    color: #4b5563;
    font-size: 2.5rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: color 0.2s ease;
    z-index: 90;
    line-height: 1;
    padding: 0;
    margin: 0;
    user-select: none;
}

#custom-mobile-menu-close:hover,
#custom-mobile-menu-close:focus {
    color: #2563eb;
    outline: none;
}

/* Scrollable nav */
#custom-mobile-menu nav {
    overflow-y: auto;
    flex-grow: 1;
    padding: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar */
#custom-mobile-menu nav::-webkit-scrollbar {
    width: 8px;
}

#custom-mobile-menu nav::-webkit-scrollbar-track {
    background: transparent;
}

#custom-mobile-menu nav::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

/* Login/Register button area */
.sidebar-buttons {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 70;
    flex-shrink: 0;
}

.custom-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    background-color: #25a75b;
    border-radius: 0.375rem;
    text-decoration: none;
    user-select: none;
    transition: background-color 0.2s ease;
}

.custom-login-btn i {
    font-size: 1.1rem;
    color: white;
    min-width: 20px;
    text-align: center;
}

.custom-login-btn:hover,
.custom-login-btn:focus {
    background-color: #ea580c;
    outline: none;
}

/* Fix header overlapping */
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Sidebar top priority */
#custom-mobile-menu {
    z-index: 10000 !important;
}

/* Close button position */
#custom-mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
    background: white;
    border-radius: 50%;
}

.space1 {
    height: 50px;
}