/* ============================================================================= RESET & BASE ============================================================================= */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); min-height: 100vh; color: #ffffff; line-height: 1.6; } /* ============================================================================= DASHBOARD LAYOUT ============================================================================= */ .dashboard { max-width: 1400px; margin: 0 auto; padding: 24px; } /* Header */ .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; padding: 20px 32px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); position: sticky; top: 15px; z-index: 50; } .header-content h1 { font-size: 2rem; font-weight: 700; background: linear-gradient(90deg, #14b8a6, #06b6d4, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 4px; } .header-content p { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; } .reload-btn { padding: 12px 24px; background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%); color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4); } .reload-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(20, 184, 166, 0.6); } /* Dashboard Sections */ .dashboard-section { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); padding: 24px; margin-bottom: 24px; } .section-title { font-size: 1.1rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } /* Content Grid */ .content-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; } .sidebar { display: flex; flex-direction: column; gap: 24px; } .sidebar .dashboard-section { margin-bottom: 0; } /* ============================================================================= USER PROFILE ============================================================================= */ .user-profile { display: flex; align-items: center; gap: 20px; } .user-avatar { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 3px solid rgba(255, 255, 255, 0.2); } .user-info h2 { font-size: 1.5rem; font-weight: 700; color: #ffffff; margin-bottom: 2px; } .user-email { font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 6px; } .user-status { display: inline-block; padding: 4px 12px; background: rgba(102, 126, 234, 0.2); color: #a5b4fc; border-radius: 20px; font-size: 0.85rem; font-weight: 500; } .status-indicator { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(255, 255, 255, 0.05); border-radius: 20px; font-size: 0.9rem; text-transform: capitalize; } .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; } .status-indicator.online .status-dot { background: #10b981; box-shadow: 0 0 8px #10b981; } .status-indicator.away .status-dot { background: #f59e0b; } /* ============================================================================= STATS GRID ============================================================================= */ .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; } .stat-card { background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.3s ease; } .stat-card:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); } .stat-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 8px; } .stat-value { font-size: 1.75rem; font-weight: 700; color: #ffffff; margin-bottom: 8px; } .stat-change { font-size: 0.85rem; font-weight: 600; } .stat-change.up { color: #10b981; } .stat-change.down { color: #ef4444; } /* ============================================================================= REVENUE CHART ============================================================================= */ .revenue-chart { width: 100%; } .chart-container { width: 100%; height: 250px; min-height: 250px; margin-top: 16px; } /* Chart Skeleton */ .chart-skeleton { width: 100%; } .chart-skeleton .skeleton-title { width: 150px; height: 20px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; margin-bottom: 16px; position: relative; overflow: hidden; } .chart-skeleton .skeleton-title::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent); animation: shimmer 1.5s infinite; } .chart-skeleton .skeleton-chart { height: 250px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 40px 30px 50px; background: rgba(255, 255, 255, 0.03); border-radius: 8px; } .chart-skeleton .skeleton-bars { display: flex; align-items: flex-end; justify-content: space-between; height: 180px; gap: 16px; } .chart-skeleton .skeleton-bar { flex: 1; background: rgba(255, 255, 255, 0.08); border-radius: 4px 4px 0 0; position: relative; overflow: hidden; } .chart-skeleton .skeleton-bar::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent); animation: shimmer 1.5s infinite; } .chart-skeleton .skeleton-axis-x { height: 2px; background: rgba(255, 255, 255, 0.1); margin-top: 16px; border-radius: 1px; } @keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } /* ============================================================================= TRANSACTIONS LIST ============================================================================= */ .transactions { display: flex; flex-direction: column; gap: 12px; } .transaction-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: rgba(255, 255, 255, 0.03); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.2s ease; } .transaction-item:hover { background: rgba(255, 255, 255, 0.06); } .tx-info { display: flex; flex-direction: column; gap: 4px; } .tx-description { font-weight: 500; color: #ffffff; } .tx-date { font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); } .tx-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .tx-amount { font-weight: 600; color: #10b981; } .tx-status { font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; text-transform: capitalize; } .tx-status.completed { background: rgba(16, 185, 129, 0.15); color: #10b981; } .tx-status.pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; } .tx-status.failed { background: rgba(239, 68, 68, 0.15); color: #ef4444; } /* ============================================================================= ACTIVITY FEED ============================================================================= */ .activities { display: flex; flex-direction: column; gap: 16px; } .activity-item { display: flex; gap: 12px; align-items: flex-start; } .activity-dot { width: 8px; height: 8px; background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 50%; margin-top: 8px; flex-shrink: 0; } .activity-content p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); line-height: 1.5; } .activity-content strong { color: #ffffff; } .activity-target { color: #a5b4fc; } .activity-time { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); margin-top: 4px; display: block; } /* ============================================================================= TEAM MEMBERS ============================================================================= */ .members-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } .member-card { display: flex; flex-direction: column; align-items: center; padding: 16px; background: rgba(255, 255, 255, 0.03); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); text-align: center; transition: all 0.2s ease; } .member-card:hover { background: rgba(255, 255, 255, 0.06); } .member-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; border: 2px solid rgba(255, 255, 255, 0.2); } .member-name { font-size: 0.9rem; font-weight: 600; color: #ffffff; margin-bottom: 2px; } .member-role { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); } /* ============================================================================= FOOTER ============================================================================= */ .dashboard-footer { text-align: center; padding: 32px; margin-top: 16px; background: rgba(255, 255, 255, 0.03); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); } .dashboard-footer p { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; line-height: 1.8; } .dashboard-footer code { background: rgba(102, 126, 234, 0.2); color: #a5b4fc; padding: 2px 8px; border-radius: 6px; font-family: 'Fira Code', 'Consolas', monospace; font-size: 0.9rem; } /* ============================================================================= NOTIFICATIONS PANEL (Suspense Example) ============================================================================= */ .suspense-section { position: relative; border: 1px solid rgba(234, 179, 8, 0.3); background: rgba(234, 179, 8, 0.03); } .suspense-label { position: absolute; top: -10px; left: 16px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); padding: 2px 12px; font-size: 0.75rem; font-weight: 600; color: #eab308; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; } .notifications-panel { width: 100%; } .notifications-list { display: flex; flex-direction: column; gap: 12px; } .notification-item { padding: 16px; background: rgba(255, 255, 255, 0.03); border-radius: 12px; border-left: 3px solid rgba(255, 255, 255, 0.2); transition: all 0.2s ease; } .notification-item:hover { background: rgba(255, 255, 255, 0.06); } .notification-item.info { border-left-color: #3b82f6; } .notification-item.success { border-left-color: #10b981; } .notification-item.warning { border-left-color: #f59e0b; } .notification-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .notification-title { font-weight: 600; color: #ffffff; font-size: 0.95rem; } .notification-time { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); } .notification-message { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); line-height: 1.5; } /* ============================================================================= RESPONSIVE ============================================================================= */ @media (max-width: 1200px) { .content-grid { grid-template-columns: 1fr; } .sidebar { display: grid; grid-template-columns: 1fr 1fr; } } @media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .sidebar { grid-template-columns: 1fr; } .dashboard-header { flex-direction: column; text-align: center; gap: 16px; } } @media (max-width: 600px) { .dashboard { padding: 16px; } .stats-grid { grid-template-columns: 1fr; } .members-grid { grid-template-columns: 1fr; } .user-profile { flex-direction: column; text-align: center; } .status-indicator { margin-left: 0; } } /* ============================================================================= HTML ATTRIBUTES DEMO ============================================================================= */ .attributes-demo-description { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 20px; line-height: 1.7; } .attributes-demo-description code { background: rgba(102, 126, 234, 0.2); color: #a5b4fc; padding: 2px 7px; border-radius: 5px; font-family: 'Fira Code', 'Consolas', monospace; font-size: 0.85rem; } .attributes-demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } @media (max-width: 900px) { .attributes-demo-grid { grid-template-columns: 1fr; } } .attr-card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: background 0.2s ease; } .attr-card:hover { background: rgba(255, 255, 255, 0.07); } .attr-card-header { display: flex; justify-content: space-between; align-items: center; } .attr-card-title { font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 0.5px; } .live-badge { font-size: 0.7rem; font-weight: 700; color: #10b981; background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: 20px; padding: 2px 10px; letter-spacing: 0.5px; } .attr-card-metric { display: flex; align-items: baseline; gap: 10px; } .attr-metric-value { font-size: 1.6rem; font-weight: 700; color: #ffffff; } .attr-metric-change { font-size: 0.85rem; font-weight: 600; } .attr-metric-change.up { color: #10b981; } .attr-metric-change.down { color: #ef4444; } .attr-card-note { font-size: 0.78rem; color: rgba(255, 255, 255, 0.35); font-style: italic; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 10px; line-height: 1.5; }