/* Header */
.header {
    background-color: var(--background-primary);
    border-bottom: 1px solid var(--border-secondary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    font-weight: 600;
    font-size: 20px;
    color: #ffffff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-header {
    position: relative;
}

.search-header input#search-input {
    padding: 6px 12px 6px 35px !important;
    width: 200px !important;
    font-size: 13px;
    outline: none;
}


.search-header svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--icon);
    pointer-events: none;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-avatar:hover {
    background-color: #ff7a47;
}


#buttons-container {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

#buttons-container a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #8b949e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    height: 48px;
}

#buttons-container a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

#buttons-container a.active {
    border-bottom: 2px solid #f78166;
}

#buttons-container svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .header-top {
        height: auto;
        padding: 12px 16px;
        flex-direction: column;
        gap: 12px;
    }

    .header-left {
        width: 100%;
        justify-content: center;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .search-header {
        flex: 1;
        max-width: none;
    }

    .search-header input {
        width: 100%;
    }

    .header-bottom {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
    }

    #buttons-container {
        padding: 8px 0;
        gap: 4px;
    }

    #buttons-container a {
        padding: 8px 12px;
        height: 40px;
        white-space: nowrap;
    }

    #buttons-container svg {
        width: 20px;
        height: 20px;
    }

    /* Hide text on mobile, show only icons */
    #buttons-container span {
        display: none;
    }

    /* Adjust active state for mobile */
    #buttons-container a.active {
        border-bottom: none;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
    }
}
