.headbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--headbar-height);
    padding: 0;
    background: white;
    position: relative;
}

.headbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--gradient-primary);
}

.headbar__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    padding-inline: 20px;
    width: 100%;
}

.headbar__logo {
    flex-grow: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5em;
}

.headbar__logoImg {
    display: block;
    width: auto;
    height: 3em;
}

.headbar__logoTxt {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 500;
}

/* Navigation styles */
.headbar__nav {
    display: flex;
    align-items: center;
}

.headbar__nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.headbar__nav-item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.headbar__nav-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.headbar__nav-item a:hover {
    color: var(--primary-color);
}

.headbar__nav-item a:hover::after {
    width: 100%;
}

.headbar__auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile navigation */
.headbar__mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .headbar__mobile-toggle {
        display: block;
    }

    .headbar__nav {
        display: none;
    }

    .headbar__nav.active {
        display: flex;
        position: fixed;
        top: var(--headbar-height);
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .headbar__nav-list {
        flex-direction: column;
    }
}
