|
|
| :root {
|
| --primary: #4F46E5;
|
| --primary-dark: #4338CA;
|
| --secondary: #10B981;
|
| --secondary-dark: #059669;
|
| --background: #F9FAFB;
|
| --surface: #FFFFFF;
|
| --text-primary: #111827;
|
| --text-secondary: #6B7280;
|
| --danger: #EF4444;
|
| --warning: #F59E0B;
|
| --success: #10B981;
|
| }
|
|
|
| body {
|
| background-color: var(--background);
|
| font-family: 'Inter', sans-serif;
|
| }
|
|
|
|
|
| .dashboard-card {
|
| background: var(--surface);
|
| border-radius: 1rem;
|
| box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
| transition: all 0.3s ease;
|
| transform: translateY(0);
|
| border: 1px solid rgba(0,0,0,0.05);
|
| }
|
|
|
| .dashboard-card:hover {
|
| transform: translateY(-4px);
|
| box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
| }
|
|
|
|
|
| .stat-card {
|
| padding: 1.5rem;
|
| display: flex;
|
| flex-direction: column;
|
| gap: 0.5rem;
|
| }
|
|
|
| .stat-card .stat-icon {
|
| width: 2.5rem;
|
| height: 2.5rem;
|
| border-radius: 0.75rem;
|
| display: flex;
|
| align-items: center;
|
| justify-content: center;
|
| margin-bottom: 0.5rem;
|
| }
|
|
|
| .stat-card .stat-value {
|
| font-size: 1.875rem;
|
| font-weight: 600;
|
| color: var(--text-primary);
|
| line-height: 1.2;
|
| }
|
|
|
| .stat-card .stat-label {
|
| font-size: 0.875rem;
|
| color: var(--text-secondary);
|
| }
|
|
|
| .stat-card .stat-change {
|
| display: flex;
|
| align-items: center;
|
| gap: 0.25rem;
|
| font-size: 0.875rem;
|
| }
|
|
|
|
|
| .status-indicator {
|
| display: inline-flex;
|
| align-items: center;
|
| gap: 0.5rem;
|
| padding: 0.25rem 0.75rem;
|
| border-radius: 9999px;
|
| font-size: 0.875rem;
|
| font-weight: 500;
|
| }
|
|
|
| .status-indicator.online {
|
| background-color: rgba(16, 185, 129, 0.1);
|
| color: var(--success);
|
| }
|
|
|
| .status-indicator.offline {
|
| background-color: rgba(239, 68, 68, 0.1);
|
| color: var(--danger);
|
| }
|
|
|
|
|
| .chart-container {
|
| padding: 1.5rem;
|
| height: 300px;
|
| }
|
|
|
|
|
| .session-card {
|
| padding: 1.25rem;
|
| display: flex;
|
| align-items: center;
|
| gap: 1rem;
|
| border-bottom: 1px solid rgba(0,0,0,0.05);
|
| }
|
|
|
| .session-card:last-child {
|
| border-bottom: none;
|
| }
|
|
|
| .session-info {
|
| flex: 1;
|
| }
|
|
|
|
|
| .quick-action {
|
| display: flex;
|
| align-items: center;
|
| gap: 0.75rem;
|
| padding: 0.75rem 1rem;
|
| border-radius: 0.5rem;
|
| background-color: var(--background);
|
| color: var(--text-primary);
|
| transition: all 0.2s ease;
|
| }
|
|
|
| .quick-action:hover {
|
| background-color: var(--primary);
|
| color: white;
|
| }
|
|
|
|
|
| @keyframes fadeIn {
|
| from {
|
| opacity: 0;
|
| transform: translateY(10px);
|
| }
|
| to {
|
| opacity: 1;
|
| transform: translateY(0);
|
| }
|
| }
|
|
|
| .animate-fade-in {
|
| animation: fadeIn 0.5s ease forwards;
|
| }
|
|
|
|
|
| .protocol-badge {
|
| display: inline-flex;
|
| align-items: center;
|
| padding: 0.375rem 0.75rem;
|
| border-radius: 0.375rem;
|
| font-size: 0.875rem;
|
| font-weight: 500;
|
| background-color: rgba(79, 70, 229, 0.1);
|
| color: var(--primary);
|
| margin: 0.25rem;
|
| }
|
|
|
|
|
| .traffic-chart {
|
| position: relative;
|
| height: 400px;
|
| margin-top: 1rem;
|
| }
|
|
|
|
|
| .data-grid {
|
| display: grid;
|
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
| gap: 1.5rem;
|
| margin-top: 1.5rem;
|
| }
|
|
|
|
|
| .dashboard-sidebar {
|
| position: fixed;
|
| left: 0;
|
| top: 0;
|
| bottom: 0;
|
| width: 250px;
|
| background: var(--surface);
|
| border-right: 1px solid rgba(0,0,0,0.05);
|
| padding: 1.5rem;
|
| transform: translateX(0);
|
| transition: transform 0.3s ease;
|
| z-index: 1000;
|
| }
|
|
|
| @media (max-width: 768px) {
|
| .dashboard-sidebar {
|
| transform: translateX(-100%);
|
| }
|
|
|
| .dashboard-sidebar.active {
|
| transform: translateX(0);
|
| }
|
|
|
| .dashboard-main {
|
| margin-left: 0 !important;
|
| }
|
| }
|
|
|
|
|
| .loading-skeleton {
|
| background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
|
| background-size: 200% 100%;
|
| animation: loading 1.5s infinite;
|
| }
|
|
|
| @keyframes loading {
|
| 0% {
|
| background-position: 200% 0;
|
| }
|
| 100% {
|
| background-position: -200% 0;
|
| }
|
| }
|
|
|
|
|
| .tooltip {
|
| position: relative;
|
| display: inline-block;
|
| }
|
|
|
| .tooltip .tooltip-text {
|
| visibility: hidden;
|
| background-color: rgba(0,0,0,0.8);
|
| color: white;
|
| text-align: center;
|
| padding: 0.5rem 1rem;
|
| border-radius: 0.375rem;
|
| position: absolute;
|
| z-index: 1;
|
| bottom: 125%;
|
| left: 50%;
|
| transform: translateX(-50%);
|
| opacity: 0;
|
| transition: opacity 0.2s ease;
|
| }
|
|
|
| .tooltip:hover .tooltip-text {
|
| visibility: visible;
|
| opacity: 1;
|
| }
|
|
|