Spaces:
Runtime error
Runtime error
| a{ | |
| text-decoration: none; | |
| } | |
| .dashboard-hero { | |
| background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #047857 100%); | |
| padding: 4rem 0; | |
| position: relative; | |
| overflow: hidden; | |
| color: white; | |
| margin-top: -1rem; | |
| margin-bottom: 3rem; | |
| } | |
| .dashboard-hero::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: | |
| radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%), | |
| radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%); | |
| animation: heroFloat 15s ease-in-out infinite; | |
| } | |
| @keyframes heroFloat { | |
| 0%, 100% { transform: translateY(0px) scale(1); } | |
| 50% { transform: translateY(-5px) scale(1.01); } | |
| } | |
| .hero-content { | |
| position: relative; | |
| z-index: 2; | |
| text-align: center; | |
| max-width: 800px; | |
| margin: 0 auto; | |
| } | |
| .hero-greeting { | |
| font-size: clamp(2rem, 4vw, 3.5rem); | |
| font-weight: 900; | |
| margin-bottom: 1rem; | |
| background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.9) 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| text-shadow: 0 2px 10px rgba(0,0,0,0.2); | |
| } | |
| .hero-subtitle { | |
| font-size: 1.25rem; | |
| opacity: 0.9; | |
| margin-bottom: 2rem; | |
| line-height: 1.6; | |
| } | |
| .hero-actions { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| align-items: center; | |
| margin-top: 2rem; | |
| } | |
| @media (min-width: 768px) { | |
| .hero-actions { | |
| flex-direction: row; | |
| justify-content: center; | |
| } | |
| } | |
| .btn-hero-action { | |
| background: rgba(255, 255, 255, 0.15); | |
| backdrop-filter: blur(20px); | |
| border: 2px solid rgba(255, 255, 255, 0.2); | |
| color: white; | |
| border-radius: 50px; | |
| font-weight: 600; | |
| padding: 0.875rem 2rem; | |
| font-size: 1rem; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| box-shadow: 0 8px 32px rgba(0,0,0,0.1); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .btn-hero-action::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: -100%; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); | |
| transition: left 0.5s; | |
| } | |
| .btn-hero-action:hover::before { | |
| left: 100%; | |
| } | |
| .btn-hero-action:hover { | |
| transform: translateY(-3px); | |
| box-shadow: 0 20px 40px rgba(0,0,0,0.2); | |
| background: rgba(255, 255, 255, 0.25); | |
| } | |
| /* Stats Grid */ | |
| .stats-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | |
| gap: 2rem; | |
| margin-bottom: 4rem; | |
| } | |
| .stat-card-revolutionary { | |
| background: var(--card-bg); | |
| border-radius: 24px; | |
| padding: 2.5rem; | |
| box-shadow: var(--shadow); | |
| border: 1px solid var(--border-color); | |
| position: relative; | |
| overflow: hidden; | |
| transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); | |
| animation: statCardSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both; | |
| } | |
| .stat-card-revolutionary:nth-child(1) { animation-delay: 0.1s; } | |
| .stat-card-revolutionary:nth-child(2) { animation-delay: 0.2s; } | |
| .stat-card-revolutionary:nth-child(3) { animation-delay: 0.3s; } | |
| .stat-card-revolutionary:nth-child(4) { animation-delay: 0.4s; } | |
| @keyframes statCardSlideIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(30px) scale(0.95); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0) scale(1); | |
| } | |
| } | |
| .stat-card-revolutionary::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 4px; | |
| background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); | |
| transform: scaleX(0); | |
| transition: transform 0.3s ease; | |
| } | |
| .stat-card-revolutionary:hover::before { | |
| transform: scaleX(1); | |
| } | |
| .stat-card-revolutionary:hover { | |
| transform: translateY(-8px); | |
| box-shadow: 0 25px 50px rgba(0,0,0,0.15); | |
| } | |
| .stat-icon { | |
| width: 80px; | |
| height: 80px; | |
| border-radius: 20px; | |
| display: grid; | |
| place-items: center; | |
| font-size: 2rem; | |
| margin-bottom: 1.5rem; | |
| box-shadow: 0 10px 30px rgba(0,0,0,0.1); | |
| } | |
| .stat-number { | |
| font-size: 3rem; | |
| font-weight: 800; | |
| margin-bottom: 0.5rem; | |
| display: block; | |
| background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| .stat-label { | |
| font-size: 1.1rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin-bottom: 0.5rem; | |
| } | |
| .stat-description { | |
| color: var(--text-secondary); | |
| font-size: 0.9rem; | |
| line-height: 1.5; | |
| } | |
| /* Activity Section */ | |
| .activity-section { | |
| background: var(--card-bg); | |
| border-radius: 24px; | |
| padding: 3rem; | |
| box-shadow: var(--shadow); | |
| border: 1px solid var(--border-color); | |
| margin-bottom: 3rem; | |
| } | |
| .activity-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 2rem; | |
| flex-wrap: wrap; | |
| gap: 1rem; | |
| } | |
| .activity-title { | |
| font-size: 2rem; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| margin: 0; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| } | |
| .activity-tabs { | |
| display: flex; | |
| gap: 0.5rem; | |
| background: var(--background-light); | |
| border-radius: 12px; | |
| padding: 0.25rem; | |
| } | |
| .activity-tab { | |
| background: transparent; | |
| border: none; | |
| padding: 0.75rem 1.5rem; | |
| border-radius: 8px; | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| transition: all 0.3s ease; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .activity-tab.active { | |
| background: var(--primary-color); | |
| color: white; | |
| box-shadow: var(--shadow-sm); | |
| } | |
| .activity-tab:hover { | |
| background: var(--card-bg); | |
| color: white; | |
| transform: translateY(-1px); | |
| } | |
| .activity-content { | |
| position: relative; | |
| } | |
| .activity-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| padding: 1.5rem; | |
| border-radius: 16px; | |
| background: var(--background-light); | |
| margin-bottom: 1rem; | |
| transition: all 0.3s ease; | |
| border: 1px solid var(--border-color); | |
| } | |
| .activity-item:hover { | |
| transform: translateX(4px); | |
| box-shadow: var(--shadow-md); | |
| background: var(--card-bg); | |
| } | |
| .activity-icon { | |
| width: 50px; | |
| height: 50px; | |
| border-radius: 12px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 1.25rem; | |
| flex-shrink: 0; | |
| } | |
| .activity-info { | |
| flex: 1; | |
| } | |
| .activity-info h6 { | |
| margin: 0 0 0.5rem 0; | |
| font-size: 1rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .activity-meta { | |
| font-size: 0.875rem; | |
| color: var(--text-secondary); | |
| } | |
| .activity-status { | |
| flex-shrink: 0; | |
| } | |
| .status-badge { | |
| padding: 0.375rem 0.75rem; | |
| border-radius: 20px; | |
| font-size: 0.75rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .status-success { | |
| background: var(--success-color); | |
| color: white; | |
| } | |
| .status-warning { | |
| background: var(--warning-color); | |
| color: white; | |
| } | |
| .empty-state { | |
| text-align: center; | |
| padding: 4rem 2rem; | |
| color: var(--text-secondary); | |
| } | |
| .empty-icon { | |
| font-size: 4rem; | |
| margin-bottom: 1.5rem; | |
| opacity: 0.5; | |
| } | |
| .empty-title { | |
| font-size: 1.5rem; | |
| font-weight: 600; | |
| margin-bottom: 0.5rem; | |
| color: var(--text-primary); | |
| } | |
| .empty-description { | |
| margin-bottom: 2rem; | |
| max-width: 400px; | |
| margin-left: auto; | |
| margin-right: auto; | |
| } | |
| /* Quick Actions */ | |
| .quick-actions { | |
| background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); | |
| border-radius: 24px; | |
| padding: 3rem; | |
| color: white; | |
| margin-bottom: 3rem; | |
| box-shadow: 0 20px 40px rgba(0,0,0,0.15); | |
| border: 1px solid rgba(255,255,255,0.15); | |
| } | |
| .quick-actions h3 { | |
| font-size: 2rem; | |
| font-weight: 700; | |
| margin-bottom: 1rem; | |
| } | |
| .quick-actions-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 1.5rem; | |
| margin-top: 2rem; | |
| } | |
| .quick-action-card { | |
| background: rgba(255, 255, 255, 0.12); | |
| backdrop-filter: blur(16px); | |
| border: 1px solid rgba(255, 255, 255, 0.25); | |
| border-radius: 16px; | |
| padding: 2rem; | |
| text-align: center; | |
| transition: all 0.3s ease; | |
| cursor: pointer; | |
| text-decoration: none; | |
| color: white; | |
| box-shadow: 0 10px 30px rgba(0,0,0,0.15); | |
| } | |
| .quick-action-card:hover { | |
| transform: translateY(-4px); | |
| background: rgba(255, 255, 255, 0.18); | |
| box-shadow: 0 24px 48px rgba(0,0,0,0.25); | |
| border-color: rgba(255,255,255,0.35); | |
| } | |
| .quick-action-icon { | |
| font-size: 2.5rem; | |
| margin-bottom: 1rem; | |
| opacity: 0.95; | |
| text-shadow: 0 4px 12px rgba(0,0,0,0.2); | |
| } | |
| .quick-action-title { | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| margin-bottom: 0.5rem; | |
| } | |
| .quick-action-description { | |
| font-size: 0.9rem; | |
| opacity: 0.8; | |
| line-height: 1.5; | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 768px) { | |
| .dashboard-hero { | |
| padding: 2rem 0; | |
| margin-bottom: 2rem; | |
| } | |
| .hero-greeting { | |
| font-size: 2rem; | |
| } | |
| .hero-subtitle { | |
| font-size: 1rem; | |
| } | |
| .stats-grid { | |
| grid-template-columns: 1fr; | |
| gap: 1rem; | |
| } | |
| .stat-card-revolutionary { | |
| padding: 2rem; | |
| } | |
| .activity-header { | |
| flex-direction: column; | |
| align-items: flex-start; | |
| } | |
| .activity-tabs { | |
| width: 100%; | |
| justify-content: center; | |
| } | |
| .activity-title { | |
| font-size: 1.5rem; | |
| } | |
| .quick-actions-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| @media (min-width: 1200px) { | |
| .dashboard-main { | |
| grid-template-columns: 2fr 1fr; | |
| } | |
| } | |
| /* Activity Section */ | |
| .activity-section { | |
| background: var(--card-bg); | |
| border-radius: 24px; | |
| box-shadow: var(--shadow); | |
| border: 1px solid var(--border-color); | |
| overflow: hidden; | |
| animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| @keyframes fadeInUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .activity-header { | |
| padding: 2rem 2rem 0; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .activity-title { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| margin-bottom: 1.5rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| } | |
| .activity-tabs { | |
| display: flex; | |
| gap: 0.5rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| .activity-tab { | |
| background: transparent; | |
| border: 2px solid var(--border-color); | |
| color: var(--text-secondary); | |
| border-radius: 50px; | |
| padding: 0.5rem 1.5rem; | |
| font-weight: 600; | |
| font-size: 0.9rem; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| cursor: pointer; | |
| } | |
| .activity-tab.active { | |
| background: var(--primary-color); | |
| border-color: var(--primary-color); | |
| color: white; | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3); | |
| } | |
| .activity-tab:hover { | |
| border-color: var(--primary-color); | |
| color: var(--primary-color); | |
| background: var(--card-bg); | |
| } | |
| } | |
| .activity-item { | |
| display: flex; | |
| align-items: center; | |
| padding: 1.5rem; | |
| border-radius: 16px; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| margin-bottom: 1rem; | |
| border: 1px solid var(--border-color); | |
| background: var(--background-color); | |
| } | |
| .activity-item:hover { | |
| transform: translateX(8px); | |
| box-shadow: 0 10px 30px rgba(0,0,0,0.1); | |
| border-color: var(--primary-color); | |
| } | |
| .activity-icon { | |
| width: 60px; | |
| height: 60px; | |
| border-radius: 16px; | |
| display: grid; | |
| place-items: center; | |
| font-size: 1.5rem; | |
| margin-right: 1.5rem; | |
| flex-shrink: 0; | |
| } | |
| .activity-info h6 { | |
| font-size: 1rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin-bottom: 0.25rem; | |
| } | |
| .activity-meta { | |
| font-size: 0.85rem; | |
| color: var(--text-secondary); | |
| } | |
| .activity-status { | |
| margin-left: auto; | |
| flex-shrink: 0; | |
| } | |
| .status-badge { | |
| padding: 0.375rem 0.875rem; | |
| border-radius: 50px; | |
| font-size: 0.75rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .status-success { | |
| background: rgba(16, 185, 129, 0.1); | |
| color: var(--success-color); | |
| border: 1px solid rgba(16, 185, 129, 0.2); | |
| } | |
| .status-warning { | |
| background: rgba(245, 158, 11, 0.1); | |
| color: var(--warning-color); | |
| border: 1px solid rgba(245, 158, 11, 0.2); | |
| } | |
| .status-primary { | |
| background: rgba(16, 185, 129, 0.1); | |
| color: var(--primary-color); | |
| border: 1px solid rgba(16, 185, 129, 0.2); | |
| } | |
| /* Sidebar */ | |
| .dashboard-sidebar { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 2rem; | |
| } | |
| .sidebar-card { | |
| background: var(--card-bg); | |
| border-radius: 24px; | |
| box-shadow: var(--shadow); | |
| border: 1px solid var(--border-color); | |
| overflow: hidden; | |
| animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both; | |
| } | |
| .sidebar-card:nth-child(1) { animation-delay: 0.2s; } | |
| .sidebar-card:nth-child(2) { animation-delay: 0.4s; } | |
| .sidebar-header { | |
| padding: 2rem 2rem 1rem; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .sidebar-title { | |
| font-size: 1.25rem; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| margin: 0; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| } | |
| .sidebar-content { | |
| padding: 1rem 2rem 2rem; | |
| } | |
| .action-button { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| padding: 1rem; | |
| border-radius: 12px; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| text-decoration: none; | |
| color: var(--text-primary); | |
| border: 1px solid var(--border-color); | |
| background: var(--background-color); | |
| margin-bottom: 0.75rem; | |
| } | |
| .action-button:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 25px rgba(0,0,0,0.1); | |
| border-color: var(--primary-color); | |
| color: var(--primary-color); | |
| } | |
| .action-icon { | |
| width: 48px; | |
| height: 48px; | |
| border-radius: 12px; | |
| display: grid; | |
| place-items: center; | |
| font-size: 1.25rem; | |
| flex-shrink: 0; | |
| } | |
| .action-info h6 { | |
| font-size: 0.95rem; | |
| font-weight: 600; | |
| margin: 0 0 0.25rem 0; | |
| } | |
| .action-info small { | |
| color: var(--text-secondary); | |
| font-size: 0.8rem; | |
| } | |
| /* Quiz Results */ | |
| .quiz-result-item { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 1rem; | |
| border-radius: 12px; | |
| background: var(--background-color); | |
| border: 1px solid var(--border-color); | |
| margin-bottom: 0.75rem; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .quiz-result-item:hover { | |
| transform: translateX(4px); | |
| box-shadow: 0 5px 15px rgba(0,0,0,0.1); | |
| } | |
| .quiz-info h6 { | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin: 0 0 0.25rem 0; | |
| } | |
| .quiz-date { | |
| font-size: 0.8rem; | |
| color: var(--text-secondary); | |
| } | |
| .quiz-score { | |
| font-size: 1.5rem; | |
| font-weight: 800; | |
| padding: 0.5rem 1rem; | |
| border-radius: 50px; | |
| min-width: 60px; | |
| text-align: center; | |
| background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); | |
| color: white; | |
| box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); | |
| } | |
| /* Empty States */ | |
| .empty-state { | |
| text-align: center; | |
| padding: 3rem 2rem; | |
| color: var(--text-secondary); | |
| } | |
| .empty-icon { | |
| font-size: 3rem; | |
| margin-bottom: 1rem; | |
| opacity: 0.5; | |
| } | |
| .empty-title { | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin-bottom: 0.5rem; | |
| } | |
| .empty-description { | |
| margin-bottom: 1.5rem; | |
| line-height: 1.5; | |
| } | |
| /* Dark mode adjustments */ | |
| [data-theme="dark"] .dashboard-hero { | |
| background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); | |
| } | |
| [data-theme="dark"] .btn-hero-action { | |
| background: rgba(255, 255, 255, 0.1); | |
| border-color: rgba(255, 255, 255, 0.3); | |
| } | |
| [data-theme="dark"] .btn-hero-action:hover { | |
| background: rgba(255, 255, 255, 0.2); | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 768px) { | |
| .dashboard-hero { | |
| padding: 3rem 1rem; | |
| } | |
| .stats-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .hero-actions { | |
| flex-direction: column; | |
| } | |
| .activity-tabs { | |
| flex-wrap: wrap; | |
| } | |
| .activity-tab { | |
| flex: 1; | |
| min-width: 120px; | |
| text-align: center; | |
| } | |
| } | |