/* Hamburger menu */
.menu-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 25px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header adjustments */
header {
    position: relative;
    z-index: 998;
    padding-left: 70px; /* Make room for hamburger */
}

header img {
    position: relative;
    z-index: 998;
}

/* Menu panel */
.nav-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    visibility: hidden; /* Start hidden */
    opacity: 0;
}

.nav-menu.active {
    left: 0;
    visibility: visible;
    opacity: 1;
}

/* Ensure menu items are visible when menu is active */
.nav-menu.active ul {
    opacity: 1;
}

/* Three lines container */
.menu-toggle span {
    position: relative;
    width: 20px; /* Smaller width for better alignment */
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    width: 20px; /* Same width as parent */
    height: 2px;
    background-color: #000;
    left: 0; /* Align with parent */
    transition: all 0.3s ease;
}

.menu-toggle span::before {
    top: -6px; /* Closer spacing */
}

.menu-toggle span::after {
    top: 6px; /* Closer spacing */
}

/* X animation */
.menu-toggle.active span {
    background-color: transparent;
}

.menu-toggle.active span::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active span::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Logo section */
.menu-logo {
    padding: 40px 20px;
    background: #fff;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.menu-logo img {
    height: 60px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* Menu items container */
.nav-menu ul {
    margin: 0;
    padding: 20px 0;
    list-style: none;
    text-align: center;
    flex-grow: 1; /* Allow list to fill remaining space */
}

.nav-menu li {
    margin: 0;
    white-space: nowrap;
}

/* Menu items */
.nav-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    color: #2C3E50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    opacity: 1 !important; /* Force opacity */
}

.nav-menu li a i {
    opacity: 1 !important; /* Force icon opacity */
}

.nav-menu li a:hover {
    background-color: #f8f9fa;
    color: #007bff; /* Blue highlight on hover */
}

/* Focus states for accessibility */
.menu-toggle:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.nav-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* Close button */
.menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #2C3E50;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.menu-close:hover {
    transform: rotate(90deg);
}

/* Divider for settings section */
.menu-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 10px 0;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .menu-toggle {
        top: 85px; /* Slightly higher on mobile due to smaller header */
    }
} 