/* 侧边栏组件样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo-area {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    margin-bottom: 4px;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    font-weight: 500;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    border-radius: 10px;
    font-weight: 600;
}

.nav-badge.new {
    background: var(--secondary);
}

.queue-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--warning);
    color: var(--bg-primary);
    font-size: 11px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-profile:hover {
    background: var(--bg-elevated);
}

.avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

.arrow-icon {
    color: var(--text-tertiary);
    font-size: 12px;
}

.system-status-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0 4px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.arrow-icon {
    color: var(--text-tertiary);
    transition: transform 0.2s;
}

.user-profile:hover .arrow-icon {
    transform: translateX(4px);
    color: var(--text-primary);
}

/* 登录/注册按钮 - 未登录状态增强 */
.auth-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f0ff 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
}

/* 悬浮效果 - 上浮+阴影 */
.auth-prompt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
    background: linear-gradient(135deg, #e8eeff 0%, #f0e8ff 100%);
}

/* 点击按下效果 */
.auth-prompt.is-pressed {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transition: all 0.1s;
}

/* 加载状态 */
.auth-prompt.is-loading {
    opacity: 0.8;
    pointer-events: none;
}

.auth-prompt.is-loading .auth-arrow {
    animation: spin 1s linear infinite;
}

.auth-icon {
    font-size: 24px;
    transition: transform 0.3s;
}

.auth-prompt:hover .auth-icon {
    transform: scale(1.1);
}

.auth-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auth-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    transition: color 0.3s;
}

.auth-subtitle {
    font-size: 12px;
    color: #64748b;
    transition: color 0.3s;
}

.auth-prompt:hover .auth-title {
    color: #667eea;
}

/* 右侧箭头 */
.auth-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.arrow-icon {
    color: #667eea;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.3s;
}

.auth-prompt:hover .auth-arrow {
    background: #667eea;
    transform: translateX(4px);
}

.auth-prompt:hover .arrow-icon {
    color: white;
    transform: translateX(2px);
}

/* 涟漪效果 */
.ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 12px;
}

.ripple-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 已登录用户卡片也加上按压效果 */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8fafc;
    border: 2px solid transparent;
}

.user-profile:hover {
    background: white;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.user-profile.is-pressed {
    transform: scale(0.98);
    background: #f1f5f9;
}

/* 头像增强 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-profile:hover .avatar {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}