/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
}
.logo-nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.logo img {
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}
.nav-container {
    display: flex;
    align-items: center;
}
.nav-tabs {
    display: flex;
    gap: 1.5rem;
}
.nav-tabs a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    position: relative;
    cursor: pointer;
}
.nav-tabs a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3182ce;
    transition: width 0.3s ease;
}
.nav-tabs a:hover::after {
    width: 100%;
}
.nav-tabs a.selected {
    color: #3182ce;
    cursor: default;
}
.nav-tabs a.selected::after {
    width: 100%;
}
.nav-tabs a.selected:hover::after {
    width: 100%;
}
.credits-settings-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.credits {
    font-weight: bold;
    color: #2b6cb0;
    padding: 0.5rem 1rem;
    background-color: #ebf8ff;
    border-radius: 20px;
}
.gear-icon-container {
    position: relative;
}
.gear-icon {
    cursor: pointer;
    font-size: 1.5rem;
    color: #a0aec0;
}
.popup {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 120%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    padding: 0.75rem;
    min-width: 160px;
    max-width: 200px;
    z-index: 1000;
}
.popup::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: white;
    box-shadow: -2px -2px 2px rgba(0,0,0,0.03);
}
.popup-email {
    font-size: 0.8rem;
    color: #4a5568;
    text-align: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    word-break: break-all;
    overflow-wrap: break-word;
}
.popup button {
    background: none;
    border: none;
    color: #4a5568;
    cursor: pointer;
    padding: 0.5rem 1rem;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.25rem;
}
.popup button:hover {
    background-color: #f7fafc;
    color: #3182ce;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #4a5568;
    margin: 2px 0;
    transition: 0.4s;
}
@media (max-width: 768px) {
    .nav-container {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        width: 100%;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1001; /* Ensure this is higher than other components */
    }
    .nav-container.active {
        left: 0;
    }
    .nav-tabs {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .nav-tabs a {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    .hamburger {
        display: flex;
    }
}
@media (min-width: 769px) {
    .gear-icon-container {
        margin-right: 15px;
    }
}
