/**
 * 用户认证模块样式
 * 包含悬浮下拉菜单和退出确认对话框
 */

/* ============================================
   用户头像下拉菜单
   ============================================ */
.user-dropdown {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 140px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
    padding: 6px;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.user-dropdown-item:hover {
    background: #eff6ff;
    color: #2563eb;
}

.user-dropdown-item.logout {
    color: #ef4444;
}

.user-dropdown-item.logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ============================================
   退出确认模态对话框
   ============================================ */
.logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.logout-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.logout-modal {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.logout-modal-overlay.show .logout-modal {
    transform: scale(1);
}

.logout-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-modal-icon span {
    color: #ef4444;
    font-size: 24px;
}

.logout-modal-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.logout-modal-message {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.logout-modal-actions {
    display: flex;
    gap: 12px;
}

.logout-modal-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.logout-modal-btn.cancel {
    background: #f1f5f9;
    color: #475569;
}

.logout-modal-btn.cancel:hover {
    background: #e2e8f0;
}

.logout-modal-btn.confirm {
    background: #ef4444;
    color: white;
}

.logout-modal-btn.confirm:hover {
    background: #dc2626;
}
