#app-header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 50px;
background-color: #282c34;
display: grid;
grid-template-columns: auto auto auto;
justify-content: space-between;
align-items: center;
padding: 0 20px;
z-index: 1000;
border-bottom: 1px solid #3e4451;
}

.header-title {
color: #D4D4D4;
font-size: 18px;
font-weight: 500;
margin: 0;
}

.header-left {
justify-self: start;
width: 200px;
}

.header-center {
justify-self: center;
width: 100%;
display: flex;
justify-content: center;
}

.header-right {
justify-self: end;
width: 200px;
display: flex;
justify-content: flex-end;
}

.nav-menu {
display: flex;
gap: 0.75rem;
background: rgba(75, 83, 99, 0.2);
padding: 0.25rem;
border-radius: 8px;
}

.nav-link {
position: relative;
padding: 0.5rem 1.25rem;
color: #D4D4D4;
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.2s ease;
border-radius: 6px;
background: transparent;
display: flex;
align-items: center;
gap: 0.5rem;
}

.nav-link:hover {
color: white;
background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
color: white;
background: rgba(255, 255, 255, 0.15);
}

.nav-link svg {
width: 16px;
height: 16px;
stroke-width: 2px;
}

#theme-toggle {
background: none;
border: none;
color: #D4D4D4;
cursor: pointer;
padding: 8px;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s;
}

#theme-toggle:hover {
background-color: rgba(255, 255, 255, 0.1);
}

#theme-toggle svg {
width: 20px;
height: 20px;
}

.logo-container {
    height: 25px;
    display: flex;
    align-items: center;
}

.logo {
    height: 100%;
    width: auto;
    display: none;
}

/* Show dark logo in dark mode (default) */
.dark-logo {
    display: block;
}

.light-logo {
    display: none;
}

/* Switch logos in light mode */
.light-theme .dark-logo {
    display: none;
}

.light-theme .light-logo {
    display: block;
}

/* Light theme styles */
.light-theme {
    background-color: #F1EFE7;
    }
    
    .light-theme #app-header {
    background-color: #F8F8F7;
    border-bottom: 1px solid #e0e0e0;
    }
    
    .light-theme .header-title {
    color: #333333;
    }
    
    .light-theme #theme-toggle {
    color: #333333;
    }
    
    .light-theme .nav-menu {
    background: rgba(0, 0, 0, 0.05);
    }
    
    .light-theme .nav-link {
    color: #555;
    }
    
    .light-theme .nav-link:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.075);
    }
    
    .light-theme .nav-link.active {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
    }

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #D4D4D4;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.light-theme .hamburger-menu span {
    background-color: #333;
}

/* Active state for hamburger */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* Tablet styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hamburger-menu {
        display: block;
        position: absolute;
        right: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 50px;
        right: -100%; /* Larger width for tablet */
        background-color: #282c34;
        width: 300px; /* Larger width for tablet */
        height: calc(100vh - 50px);
        padding: 30px;
        transition: all 0.4s ease;
        flex-direction: column;
        gap: 15px;
    }

    .light-theme .nav-menu {
        background-color: #F8F8F7;
    }

    .nav-menu.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    #app-header {
        grid-template-columns: auto auto;
        padding: 0 15px;
    }

    .header-center {
        justify-self: end;
    }

    .header-right {
        position: absolute;
        right: 70px;
    }
}

/* Mobile styles (below 768px) */
@media (max-width: 767px) {
    .hamburger-menu {
        display: block;
        position: absolute;
        right: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 50px;
        right: -100%;
        background-color: #282c34;
        width: 250px;
        height: calc(100vh - 50px);
        padding: 20px;
        transition: all 0.3s ease;
        flex-direction: column;
        gap: 10px;
    }

    .light-theme .nav-menu {
        background-color: #F8F8F7;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 15px;
    }

    /* Adjust header grid for mobile */
    #app-header {
        grid-template-columns: auto auto;
        padding: 0 10px;
    }

    .header-center {
        justify-self: end;
    }

    .header-right {
        position: absolute;
        right: 70px;
    }
}