/* ============================================
   Header & User Authentication Styles
   ============================================ */

/* Sidebar Header Container (2줄 레이아웃) */
.sidebar-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    gap: 6px;
}

.header-title {
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
}

/* User Display Area */
#user-display {
    display: none;
    color: white;
    font-size: 12px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    white-space: nowrap;
}

#user-display span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Login/Logout Buttons */
#show-auth-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

#show-auth-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

#logout-btn {
    background: #ef4444;
    border: none;
    color: white;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

#logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Close Sidebar Button */
#close-left-sidebar,
#close-right-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

#close-left-sidebar:hover,
#close-right-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Header Action Group (2줄: 크레딧 + Auth) */
.header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .sidebar-header {
        padding: 12px;
    }

    .header-title {
        font-size: 12px;
    }

    #user-display span {
        max-width: 80px;
    }

    #show-auth-btn,
    #logout-btn {
        font-size: 11px;
        padding: 3px 8px;
    }
}