/*
 * Copyright (c) 2026 北京纵横时空科技有限责任公司
 *
 * 本软件（包含源代码、可执行文件及所有相关文档）受中华人民共和国著作权法
 * 及其他知识产权相关法律保护。未经北京纵横时空科技有限责任公司事先书面授权，
 * 任何单位或个人不得以任何形式复制、修改、分发、出租、反编译本软件或其任何部分。
 *
 * 文件名: style.css
 * 功能描述: 样式或主模块
 * 作者: 廖心慈
 * 创建日期: 2026-05-24
 */

/* 现代风格管理后台 CSS */

:root {
    /* 深色主题配色 */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #f472b6;
    --primary-light: #fbcfe8;
    --primary-dark: #db2777;
    
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    
    --border-color: #334155;
    --border-light: #475569;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Layout ===== */
.container {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.brand h1 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    margin-bottom: 4px;
}

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

.nav-item.active {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.2) 0%, rgba(244, 114, 182, 0.1) 100%);
    color: var(--primary);
    border: 1px solid rgba(244, 114, 182, 0.3);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.user-profile {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

/* Default Avatar Styles */
.avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.avatar-default.admin {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
}

.avatar-default.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar-default.anonymous {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

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

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px 32px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header h2 {
    font-size: 28px;
    font-weight: 700;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.date-display .day {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.date-display .month-year {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.primary {
    background: rgba(244, 114, 182, 0.2);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

.stat-icon.info {
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
}

.stat-trend.up {
    color: var(--success);
    background: rgba(74, 222, 128, 0.1);
}

.stat-trend.down {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.1);
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(74, 222, 128, 0.1);
    color: var(--success);
    z-index: 2;
    position: relative;
}

.stat-change.negative {
    background: rgba(248, 113, 113, 0.1);
    color: var(--danger);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Content Grid ===== */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
}

.card-body {
    padding: 20px 24px;
}

/* ===== Chart Container ===== */
.chart-container {
    height: 300px;
    position: relative;
}

/* ===== Chart Actions & Period Buttons ===== */
.chart-actions {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius);
}

.chart-period-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.chart-period-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

.chart-period-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* ===== Chart Legend ===== */
.chart-legend {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-item strong {
    margin-left: auto;
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== Activity List ===== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.activity-item:hover {
    background: var(--bg-tertiary);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.message {
    background: rgba(244, 114, 182, 0.2);
    color: var(--primary);
}

.activity-icon.user {
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
}

.activity-icon.report {
    background: rgba(248, 113, 113, 0.2);
    color: var(--danger);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    line-height: 1.5;
}

.activity-text strong {
    color: var(--primary);
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Messages Table ===== */
.messages-table {
    width: 100%;
}

.messages-table .table-header {
    display: grid;
    grid-template-columns: 160px 2fr 120px 120px 120px;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.messages-table .table-row {
    display: grid;
    grid-template-columns: 160px 2fr 120px 120px 120px;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: var(--transition);
}

.messages-table .col-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.messages-table .col-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.messages-table .col-user .user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.messages-table .col-user .user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.messages-table .col-user .user-id {
    font-size: 12px;
    color: var(--text-muted);
}

.messages-table .col-stats {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.messages-table .col-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.messages-table .col-stats .stat-item i {
    font-size: 14px;
    color: var(--text-muted);
}

.messages-table .col-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 110px;
}

/* ===== Admin Messages Table (Dynamic Management) ===== */
.admin-messages-table .table-header {
    display: grid;
    grid-template-columns: 60px 2fr 120px 100px 120px 110px;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    align-items: center;
}

.admin-messages-table .table-row {
    display: grid;
    grid-template-columns: 60px 2fr 120px 100px 120px 110px;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: var(--transition);
}

.admin-messages-table .col-message-id {
    text-align: center;
}

.admin-messages-table .message-id {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-messages-table .col-message-content {
    min-width: 0;
}

.admin-messages-table .col-message-content .message-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.admin-messages-table .message-tags {
    display: flex;
    gap: 6px;
}

.admin-messages-table .message-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.admin-messages-table .message-tags .tag.anonymous {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.admin-messages-table .message-tags .tag.public {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.admin-messages-table .col-message-author {
    min-width: 0;
}

.admin-messages-table .author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-messages-table .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.admin-messages-table .author-avatar.anonymous {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 12px;
}

.admin-messages-table .author-name {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-messages-table .col-message-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-messages-table .message-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.admin-messages-table .message-stat i {
    font-size: 12px;
}

.admin-messages-table .col-message-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-messages-table .col-message-time .time-text {
    font-size: 13px;
    color: var(--text-primary);
}

.admin-messages-table .col-message-time .time-full {
    font-size: 11px;
    color: var(--text-muted);
}

.admin-messages-table .col-message-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.admin-messages-table .col-message-actions .btn-icon-sm {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.table-row:hover {
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.col-id {
    font-family: 'SF Mono', monospace;
    color: var(--text-muted);
    font-size: 13px;
}

.col-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.col-content .title {
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.col-content .preview {
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.col-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

.author-name {
    font-size: 14px;
}

.col-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.col-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-sm:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-icon-sm.danger:hover {
    background: rgba(248, 113, 113, 0.2);
    color: var(--danger);
}

.btn-icon-sm.warning:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.btn-icon-sm.success:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* ===== Status Badge ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.active {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
}

.status-badge.active::before {
    background: var(--success);
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

.status-badge.pending::before {
    background: var(--warning);
}

.status-badge.banned {
    background: rgba(248, 113, 113, 0.15);
    color: var(--danger);
}

.status-badge.banned::before {
    background: var(--danger);
}

/* ===== Tab Content ===== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== Page Header ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.page-header p {
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== Toolbar ===== */
.toolbar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-group {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 500px;
}

.search-group input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 114, 182, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--border-light);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248, 113, 113, 0.3);
}

.btn-warning {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.3);
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* ===== Filter Group ===== */
.filter-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover {
    border-color: var(--primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
}

/* ===== Users Table ===== */
.users-table {
    overflow-x: auto;
}

.users-table .table-header {
    display: grid;
    grid-template-columns: 180px 160px 120px 100px 100px 120px 220px;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    align-items: center;
}

.users-table .table-row {
    display: grid;
    grid-template-columns: 180px 160px 120px 100px 100px 120px 220px;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: var(--transition);
}

.users-table .table-row:hover {
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.users-table .col-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.users-table .col-actions .btn-icon-sm {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.users-table .col-actions .btn-icon-sm:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.users-table .col-actions .btn-icon-sm.danger:hover {
    background: var(--danger);
    border-color: var(--danger);
}

.users-table .col-actions .btn-icon-sm.warning:hover {
    background: #f59e0b;
    border-color: #f59e0b;
}

.users-table .col-actions .btn-icon-sm.success:hover {
    background: #10b981;
    border-color: #10b981;
}

/* User table action buttons */
.users-table .col-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.users-table .col-actions .btn-action {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.users-table .col-actions .btn-action:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.users-table .col-actions .btn-action.danger {
    color: var(--danger);
    border-color: rgba(248, 113, 113, 0.3);
}

.users-table .col-actions .btn-action.danger:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.users-table .col-actions .btn-action.warning {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.users-table .col-actions .btn-action.warning:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.users-table .col-actions .btn-action.success {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.users-table .col-actions .btn-action.success:hover {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.col-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.col-user-info .user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

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

.col-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.contact-item i {
    width: 16px;
    color: var(--primary);
}

.col-location {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.location-tag, .gender-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.gender-tag.male {
    color: #60a5fa;
}

.gender-tag.female {
    color: #f472b6;
}

.col-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-stat {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.user-stat .stat-label {
    color: var(--text-muted);
}

.user-stat .stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.col-status, .col-role {
    display: flex;
    align-items: center;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.role-badge.user {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
}

.role-badge.vip {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: var(--warning);
}

.role-badge.admin {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.2) 0%, rgba(244, 114, 182, 0.1) 100%);
    color: var(--primary);
}

.col-time .time-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-overlay .modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-overlay .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-overlay .modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-overlay .modal-body {
    padding: 24px;
}

.modal-overlay .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ===== Responsive ===== */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .users-table .table-header,
    .users-table .table-row {
        grid-template-columns: 180px 160px 120px 100px 100px 120px 220px;
        min-width: 900px;
    }
}

@media (max-width: 1200px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .toolbar {
        flex-direction: column;
    }
    
    .search-group {
        max-width: 100%;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .header h2 {
        font-size: 22px;
    }
    
    /* Dashboard specific responsive fixes */
    #dashboard .stats-overview {
        grid-template-columns: 1fr;
    }
}

/* ===== Dashboard Specific Styles ===== */
#dashboard .stat-card {
    position: relative;
    overflow: visible;
}

#dashboard .stat-bg-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.6;
    z-index: 0;
}

#dashboard .stat-card.primary .stat-bg-icon {
    background: rgba(244, 114, 182, 0.15);
    color: var(--primary);
}

#dashboard .stat-card.success .stat-bg-icon {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
}

#dashboard .stat-card.warning .stat-bg-icon {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

#dashboard .stat-card.info .stat-bg-icon {
    background: rgba(96, 165, 250, 0.15);
    color: var(--info);
}

#dashboard .stat-content {
    position: relative;
    z-index: 1;
}

#dashboard .stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

#dashboard .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

#dashboard .stat-change {
    margin-left: auto;
    margin-right: 48px;
}

@media (max-width: 768px) {
    #dashboard .content-grid {
        grid-template-columns: 1fr;
    }
    
    #dashboard .messages-table .table-header,
    #dashboard .messages-table .table-row {
        grid-template-columns: 50px 1fr 80px 60px;
        gap: 8px;
    }
    
    #dashboard .col-stats {
        display: none;
    }
    
    #dashboard .col-time {
        display: none;
    }
}

/* ===== Toast Notification ===== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    min-width: 300px;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: 20px;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.warning .toast-icon {
    color: var(--warning);
}

.toast.info .toast-icon {
    color: var(--info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Loading Spinner ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

/* ===== Empty State ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Stats Overview (for feedback & analytics) ===== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card.primary {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.1) 0%, rgba(244, 114, 182, 0.05) 100%);
    border-color: rgba(244, 114, 182, 0.3);
}

.stat-card.success {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(74, 222, 128, 0.05) 100%);
    border-color: rgba(74, 222, 128, 0.3);
}

.stat-card.warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

.stat-card.info {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
    border-color: rgba(96, 165, 250, 0.3);
}

.stat-bg-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0.8;
}

.stat-bg-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.stat-card.primary .stat-bg-icon {
    background: rgba(244, 114, 182, 0.2);
    color: var(--primary);
}

.stat-card.success .stat-bg-icon {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

.stat-card.warning .stat-bg-icon {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

.stat-card.info .stat-bg-icon {
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0;
    line-height: 1.2;
}

.stat-footer {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Data Table ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
}

.data-table tbody tr:hover {
    background: rgba(244, 114, 182, 0.05);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Feedback Management Styles ===== */
#feedback .stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

#feedback .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

#feedback .filter-group {
    display: flex;
    gap: 12px;
}

#feedback .search-group {
    display: flex;
    gap: 12px;
}

#feedback .search-group input {
    width: 280px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
}

#feedback .data-table {
    width: 100%;
    border-collapse: collapse;
}

#feedback .data-table th,
#feedback .data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

#feedback .data-table th {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
}

#feedback .data-table tbody tr:hover {
    background: rgba(244, 114, 182, 0.05);
}

#feedback .feedback-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s;
}

#feedback .feedback-type-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#feedback .feedback-type-badge.bug {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
}

#feedback .feedback-type-badge.feature {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.2);
}

#feedback .feedback-type-badge.complaint {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
    border-color: rgba(249, 115, 22, 0.2);
}

#feedback .feedback-type-badge.other {
    background: rgba(107, 114, 128, 0.12);
    color: #4b5563;
    border-color: rgba(107, 114, 128, 0.2);
}

#feedback .feedback-type-badge i {
    font-size: 11px;
}

#feedback .feedback-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Feedback Modal - 反馈专用样式（继承通用样式） */
.modal-overlay.feedback-modal {
    z-index: 1001;
}

.feedback-detail-row {
    display: flex;
    margin-bottom: 16px;
}

.feedback-detail-label {
    width: 80px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.feedback-detail-value {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.feedback-content-box {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 8px;
    line-height: 1.6;
}

.feedback-reply-box {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(74, 222, 128, 0.05) 100%);
    border-left: 3px solid var(--success);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}

.feedback-reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.feedback-reply-author {
    color: var(--success);
    font-weight: 600;
}

.feedback-reply-time {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1200px) {
    #feedback .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #feedback .stats-overview {
        grid-template-columns: 1fr;
    }
    
    #feedback .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    #feedback .filter-group,
    #feedback .search-group {
        width: 100%;
    }
    
    #feedback .search-group input {
        flex: 1;
        width: auto;
    }
    
    #feedback .data-table {
        font-size: 13px;
    }
    
    #feedback .data-table th,
    #feedback .data-table td {
        padding: 12px 16px;
    }
}

/* ===== Analytics Page Styles ===== */
#analytics .stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

#analytics .stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

#analytics .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

#analytics .stat-card.primary {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.1) 0%, rgba(244, 114, 182, 0.05) 100%);
    border-color: rgba(244, 114, 182, 0.3);
}

#analytics .stat-card.success {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(74, 222, 128, 0.05) 100%);
    border-color: rgba(74, 222, 128, 0.3);
}

#analytics .stat-card.warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

#analytics .stat-card.info {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
    border-color: rgba(96, 165, 250, 0.3);
}

#analytics .stat-bg-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0.8;
}

#analytics .stat-card.primary .stat-bg-icon {
    background: rgba(244, 114, 182, 0.2);
    color: var(--primary);
}

#analytics .stat-card.success .stat-bg-icon {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

#analytics .stat-card.warning .stat-bg-icon {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

#analytics .stat-card.info .stat-bg-icon {
    background: rgba(96, 165, 250, 0.2);
    color: var(--info);
}

#analytics .stat-content {
    position: relative;
    z-index: 1;
}

#analytics .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

#analytics .stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0;
    line-height: 1.2;
}

#analytics .stat-footer {
    font-size: 13px;
    color: var(--text-muted);
}

/* Analytics Charts Section */
#analytics .charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

#analytics .chart-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
}

#analytics .chart-card.main-chart {
    grid-row: span 2;
}

#analytics .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#analytics .chart-header h3 {
    font-size: 16px;
    font-weight: 600;
}

#analytics .chart-container {
    height: 300px;
    position: relative;
}

#analytics .chart-container.large {
    height: 400px;
}

/* Analytics Table Section */
#analytics .table-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
}

#analytics .table-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#analytics .table-header-section h3 {
    font-size: 16px;
    font-weight: 600;
}

#analytics .table-responsive {
    overflow-x: auto;
}

#analytics .data-table {
    width: 100%;
    border-collapse: collapse;
}

#analytics .data-table thead {
    background: var(--bg-secondary);
}

#analytics .data-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

#analytics .data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
    vertical-align: top;
}

#analytics .data-table tbody tr:hover {
    background: rgba(244, 114, 182, 0.05);
}

#analytics .data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Rank Badge */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: white;
    background: var(--bg-tertiary);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
}

/* Analytics Responsive */
@media (max-width: 1400px) {
    #analytics .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #analytics .charts-section {
        grid-template-columns: 1fr;
    }
    
    #analytics .chart-card.main-chart {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    #analytics .stats-overview {
        grid-template-columns: 1fr;
    }
    
    #analytics .data-table {
        font-size: 13px;
    }
    
    #analytics .data-table th,
    #analytics .data-table td {
        padding: 12px 16px;
    }
}

/* ===== User Management Additional Styles ===== */
#users .stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

#users .stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

#users .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

#users .stat-card.primary {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.1) 0%, rgba(244, 114, 182, 0.05) 100%);
    border-color: rgba(244, 114, 182, 0.3);
}

#users .stat-card.success {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(74, 222, 128, 0.05) 100%);
    border-color: rgba(74, 222, 128, 0.3);
}

#users .stat-card.warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

#users .stat-card.danger {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
    border-color: rgba(248, 113, 113, 0.3);
}

#users .stat-bg-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0.8;
}

#users .stat-card.primary .stat-bg-icon {
    background: rgba(244, 114, 182, 0.2);
    color: var(--primary);
}

#users .stat-card.success .stat-bg-icon {
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
}

#users .stat-card.warning .stat-bg-icon {
    background: rgba(251, 191, 36, 0.2);
    color: var(--warning);
}

#users .stat-card.danger .stat-bg-icon {
    background: rgba(248, 113, 113, 0.2);
    color: var(--danger);
}

#users .stat-content {
    position: relative;
    z-index: 1;
}

#users .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

#users .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0;
    line-height: 1.2;
}

#users .stat-footer {
    font-size: 13px;
    color: var(--text-muted);
}

/* Detail Grid for User Modal */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item p {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Ban Info Section */
.ban-info {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}

.ban-info h4 {
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ban-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ban-info p strong {
    color: var(--text-primary);
}

/* User Detail Header */
.user-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.user-detail-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.user-detail-header h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-detail-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

/* Responsive for Users */
@media (max-width: 1400px) {
    #users .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #users .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .user-detail-header {
        flex-direction: column;
        text-align: center;
    }
}
