/* Dashboard Styles */ .dashboard { min-height: 100vh; background: #f8fafc; } /* Header */ .dashboard-header { background: white; border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .header-content { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; font-weight: bold; color: #667eea; } .logo-icon { width: 32px; height: 32px; } .user-actions { display: flex; align-items: center; gap: 1rem; } .welcome-text { color: #334155; font-weight: 600; font-size: 1rem; } .logout-btn { display: flex; align-items: center; gap: 0.5rem; background: #ef4444; color: white; border: none; padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; } .logout-btn:hover { background: #dc2626; transform: translateY(-1px); } /* Dashboard Content */ .dashboard-content { max-width: 1200px; margin: 0 auto; padding: 2rem; display: flex; flex-direction: column; gap: 2rem; } /* 仪表板概览 - 三栏布局 */ .dashboard-overview { display: grid; grid-template-columns: 300px 280px 1fr; gap: 2rem; margin-bottom: 2rem; } .user-card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); display: flex; align-items: center; gap: 1rem; border: 1px solid #e2e8f0; } .tag-cloud-wrapper { display: flex; flex-direction: column; gap: 1rem; } .filter-result-bar { background: white; padding: 1rem 1.5rem; border-radius: 8px; border: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); } .filter-result-bar .clear-filters-btn { background: #ef4444; color: white; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 4px; } .filter-result-bar .clear-filters-btn:hover { background: #dc2626; transform: translateY(-1px); } .filter-result { color: #64748b; font-size: 0.875rem; font-weight: 500; } .user-avatar { width: 48px; height: 48px; background: linear-gradient(45deg, #667eea, #764ba2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; } .user-details { flex: 1; } .user-details h2 { margin: 0 0 0.25rem 0; color: #1e293b; font-size: 1.25rem; font-weight: 600; } .user-email { color: #64748b; margin: 0 0 0.25rem 0; font-size: 0.875rem; } .join-date { color: #94a3b8; font-size: 0.75rem; margin: 0; } /* 统一的统计卡片样式 */ .unified-stats-card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); border: 1px solid #e2e8f0; } .unified-stats-card h3 { margin: 0 0 1rem 0; color: #1e293b; font-size: 1.1rem; font-weight: 600; } .stats-rows { display: flex; flex-direction: column; gap: 0; } .stat-row { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent; } .stat-row:hover { background: #f8fafc; border-color: #c7d2fe; } .stat-row.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-color: #667eea; } .stat-row .stat-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #f1f5f9; } .stat-row.active .stat-icon { background: rgba(255, 255, 255, 0.2); } .stat-row .stat-icon .icon { color: #64748b; } .stat-row.active .stat-icon .icon { color: white; } .stat-text { flex: 1; display: flex; justify-content: space-between; align-items: center; } .stat-label { font-size: 0.9rem; color: #64748b; font-weight: 500; } .stat-row.active .stat-label { color: white; } .stat-value { font-size: 1.25rem; font-weight: 700; color: #1e293b; } .stat-row.active .stat-value { color: white; } .stat-card { background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); display: flex; align-items: center; gap: 1rem; transition: all 0.3s ease; cursor: pointer; border: 2px solid transparent; } .stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); border-color: #c7d2fe; } .stat-card.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-color: #667eea; } .stat-card.active .stat-icon .icon { color: white; } .stat-card.active .stat-info h3, .stat-card.active .stat-info p { color: white; } .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; } .stat-card:nth-child(1) .stat-icon { background: linear-gradient(45deg, #06b6d4, #0891b2); color: white; } .stat-card:nth-child(2) .stat-icon { background: linear-gradient(45deg, #10b981, #059669); color: white; } .stat-card:nth-child(3) .stat-icon { background: linear-gradient(45deg, #f59e0b, #d97706); color: white; } .stat-info h3 { margin: 0; font-size: 2rem; font-weight: bold; color: #1e293b; } .stat-info p { margin: 0; color: #64748b; font-size: 0.9rem; } /* Filter Section */ .filter-section { background: white; border-radius: 16px; padding: 0; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); margin-bottom: 2rem; overflow: hidden; } .filter-header { padding: 1.5rem 2rem; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #f8fafc, #eef2f7); } .filter-title { display: flex; align-items: center; gap: 8px; } .filter-title h2 { margin: 0; color: #1e293b; font-size: 1.3rem; font-weight: 600; } .clear-filters-btn { background: #ef4444; color: white; border: none; padding: 8px 16px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; } .clear-filters-btn:hover { background: #dc2626; transform: translateY(-1px); } .filter-summary { padding: 1rem 2rem; background: #f8fafc; border-top: 1px solid #f1f5f9; text-align: center; } .filter-result { color: #64748b; font-size: 0.875rem; font-weight: 500; } /* Meetings Section */ .meetings-section { background: white; border-radius: 16px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); overflow: hidden; } .section-header { padding: 2rem 2rem 1rem 2rem; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: flex-start; } .section-title h2 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.5rem 0; color: #1e293b; font-size: 1.5rem; } .section-title p { margin: 0; color: #64748b; } .create-meeting-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: linear-gradient(135deg, #667eea, #764ba2); color: white; text-decoration: none; padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); white-space: nowrap; } .create-meeting-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4); color: white; text-decoration: none; } /* Loading and Error States */ .loading-container, .error-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 50vh; color: #64748b; } .loading-spinner { width: 40px; height: 40px; border: 3px solid #e2e8f0; border-top: 3px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .retry-btn { background: #667eea; color: white; border: none; padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; margin-top: 1rem; transition: background 0.3s ease; } .retry-btn:hover { background: #5a67d8; } /* Responsive Design */ @media (max-width: 768px) { .dashboard-content { padding: 1rem; } .dashboard-overview { grid-template-columns: 1fr; gap: 1rem; } .header-content { padding: 1rem; } .user-actions { flex-direction: column; gap: 0.5rem; align-items: flex-end; } .welcome-text { font-size: 0.9rem; } } /* User Menu */ .user-menu-container { position: relative; } .user-menu-trigger { display: flex; align-items: center; cursor: pointer; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 8px; transition: all 0.3s ease; background: transparent; } .user-menu-trigger:hover { background: #f1f5f9; } .dropdown-menu { position: absolute; top: 100%; right: 0; background: white; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); border: 1px solid #e2e8f0; padding: 0.5rem; margin-top: 0.5rem; width: 160px; z-index: 10; display: flex; flex-direction: column; } .dropdown-menu button, .dropdown-menu a { background: none; border: none; text-align: left; padding: 0.75rem 1rem; width: 100%; border-radius: 6px; cursor: pointer; color: #334155; text-decoration: none; display: flex; align-items: center; gap: 0.75rem; } .dropdown-menu button:hover, .dropdown-menu a:hover { background: #f1f5f9; } /* Modal Styles */ .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; } .modal-content { background: white; padding: 2rem; border-radius: 8px; width: 90%; max-width: 500px; } .modal-content h2 { margin-top: 0; } .modal-content .form-group { margin-bottom: 1rem; } .modal-content .form-group label { display: block; margin-bottom: 0.5rem; } .modal-content .form-group input { width: 100%; padding: 0.5rem; border-radius: 4px; border: 1px solid #ccc; } .modal-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; } .error-message { color: red; margin-bottom: 1rem; } .success-message { color: green; margin-bottom: 1rem; }