/* =================================================================
   6. 底部用户区域
   ================================================================= */
.user-section {
    flex-shrink: 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.8);
    z-index: 2;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.icon-sun {
    display: none;
}

.icon-moon {
    display: block;
}

#user-info {
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    padding: 5px;
    flex: 1;
}

#user-info:hover .username-text {
    color: #fff;
}

#user-info:hover .fa-user-circle {
    color: #31c27c !important;
    transition: 0.3s;
}

.username-text {
    color: #ddd;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#btn-login-trigger {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #31c27c, #25a062);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(49, 194, 124, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

#btn-login-trigger:active {
    transform: scale(0.95);
}

#btn-login-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(49, 194, 124, 0.5);
}

.logout-popup {
    display: none;
    position: absolute;
    bottom: 65px;
    left: 10px;
    right: 10px;
    background: #222;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    overflow: hidden;
    animation: fadeInUp 0.2s ease;
}

.logout-popup.show {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logout-btn-item {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    color: #ff4d4f;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.logout-btn-item:hover {
    background-color: #333;
}