.navbar {
    background: var(--nav-background);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1450px;
}

.nav-logo {
    font-size: 28px;
    font-weight: 400;
    color: var(--nav-text-color);
    text-decoration: none;
    font-family: 'Great Vibes', cursive;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    gap: 20px;
}

.nav-links a {
    color: var(--nav-text-color);
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links .btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    width: auto;
}

.nav-links .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
    color: var(--nav-text-color);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(15deg);
}

.logout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.logout-modal-content {
    background: var(--card-background, white);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.logout-modal-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-color, #333);
}

.logout-modal-content .btn {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    background: var(--button-background);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.logout-modal-content .btn:hover {
    background: var(--button-hover-background);
    transform: translateY(-2px);
}

html.dark-theme .logout-modal-content {
    background: var(--card-background, #1F3F33);
}

html.dark-theme .logout-modal-content p {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .navbar {
        padding: 8px 15px;
    }

    .nav-logo {
        font-size: 22px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 14px;
    }

    .nav-links .btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 18px;
    }

    .nav-links {
        gap: 5px;
    }

    .nav-links a {
        padding: 4px 8px;
        font-size: 12px;
    }

    .nav-links .btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}