.navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin-top: 10px;
    border-radius: 18px;
    padding: 10px 12px;
    border: 1px solid #d8e3e8;
    background:
        radial-gradient(circle at 10% 10%, rgba(82, 176, 255, 0.17) 0%, transparent 34%),
        radial-gradient(circle at 88% 20%, rgba(88, 201, 137, 0.15) 0%, transparent 32%),
        linear-gradient(125deg, #ffffff 0%, #f5fbff 50%, #f4fcf7 100%);
    backdrop-filter: blur(4px);
    box-shadow: 0 12px 24px rgba(12, 37, 51, 0.08);
}

.navbar-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.navbar-first-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#logo-antask {
    text-decoration: none;
}

.logo-area {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px 7px 8px;
    border-radius: 999px;
    border: 1px solid #d6e4ea;
    background: rgba(255, 255, 255, 0.84);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-area:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(17, 45, 58, 0.1);
}

.logo-icon {
    height: 34px;
    width: auto;
    border-radius: 9px;
}

.logo-text {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #123246;
}

.user-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.user-pseudo,
.user-points {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    color: #173344;
    font-weight: 700;
    border: 1px solid #d4e2e8;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    padding: 8px 11px;
}

.user-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2aae70 0%, #157547 100%);
    box-shadow: 0 0 0 3px rgba(42, 174, 112, 0.2);
}

.points-icon {
    width: 16px;
    height: 16px;
}

.menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.menu-item:hover {
    transform: translateY(-1px);
}

.menu-item.login {
    color: #123247;
    border: 1px solid #cfe0e8;
    background: #ffffff;
}

.menu-item.login:hover {
    background: #f3f9fc;
}

.menu-item.signup {
    color: #ffffff;
    border: 1px solid #16845a;
    background: linear-gradient(135deg, #1ca36c 0%, #167f53 100%);
    box-shadow: 0 8px 18px rgba(22, 127, 83, 0.26);
}

.menu-item.signup:hover {
    background: linear-gradient(135deg, #1a965f 0%, #136f49 100%);
    box-shadow: 0 10px 22px rgba(22, 127, 83, 0.33);
}

.menu-item.logout {
    padding: 7px 10px;
    border: 1px solid #f1cccc;
    background: #fff5f5;
}

.login-icon {
    width: 17px;
    height: 17px;
    opacity: 0.95;
}

.xp-container {
    margin: 0;
}

.xp-bar {
    position: relative;
    width: 100%;
    height: 24px;
    background: linear-gradient(180deg, #243747 0%, #1a2935 100%);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #273948;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #49b36e 0%, #8fd95a 100%);
    transition: width 0.55s ease-in-out;
}

.xp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    color: #f6fbff;
    font-weight: 700;
    font-size: 0.82rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

@media (max-width: 820px) {
    .navbar {
        margin-top: 8px;
        padding: 10px;
        border-radius: 14px;
    }

    .navbar-first-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .logo-area {
        padding-right: 10px;
    }

    .logo-text {
        font-size: 0.95rem;
    }

    .user-info {
        width: 100%;
        justify-content: flex-start;
    }

    .user-pseudo,
    .user-points,
    .menu-item {
        font-size: 0.84rem;
    }
}

@media (max-width: 520px) {
    .navbar {
        box-shadow: 0 8px 18px rgba(12, 37, 51, 0.09);
    }

    .user-info {
        gap: 7px;
    }

    .user-pseudo,
    .user-points {
        padding: 7px 10px;
    }

    .menu-item {
        padding: 8px 10px;
    }

    .xp-bar {
        height: 22px;
    }

    .xp-overlay {
        padding: 0 10px;
        font-size: 0.75rem;
    }
}
