:root { --primary: #1e3a8a; --accent: #2563eb; --bg: #f3f4f6; --card: #ffffff; --text: #1f2937; --sidebar: #111827; --sidebar-text: #9ca3af; --danger: #dc2626; --success: #16a34a; --radius: 12px; } [data-theme="dark"] { --bg: #111827; --card: #1f2937; --text: #f3f4f6; --sidebar: #0f172a; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; } body { background: var(--bg); color: var(--text); display: flex; transition: background 0.3s; } /* Sidebar */ .sidebar { width: 260px; height: 100vh; background: var(--sidebar); color: white; position: fixed; left: 0; top: 0; padding: 2rem 1rem; display: flex; flex-direction: column; z-index: 1000; } .sidebar-logo { font-size: 1.5rem; font-weight: bold; margin-bottom: 2rem; color: white; text-decoration: none; display: flex; align-items: center; gap: 10px; } .nav-links { list-style: none; flex: 1; } .nav-links li { margin-bottom: 0.5rem; } .nav-links a { color: var(--sidebar-text); text-decoration: none; padding: 0.8rem 1rem; display: flex; align-items: center; gap: 12px; border-radius: var(--radius); transition: 0.3s; } .nav-links a:hover, .nav-links a.active { background: var(--accent); color: white; } /* Main Content */ .main-content { margin-left: 260px; width: calc(100% - 260px); padding: 2rem; } .top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } /* Dashboard Cards */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; } .stat-card { background: var(--card); padding: 1.5rem; border-radius: var(--radius); box-shadow: 0 4px 6px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 1rem; transition: transform 0.3s; } .stat-card:hover { transform: translateY(-5px); } .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(37, 99, 235, 0.1); color: var(--accent); } .stat-info h3 { font-size: 0.875rem; color: #6b7280; margin-bottom: 0.25rem; } .stat-info p { font-size: 1.5rem; font-weight: bold; } /* Data Table */ .data-table-container { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 4px 6px rgba(0,0,0,0.05); overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th { text-align: left; padding: 1rem; border-bottom: 2px solid var(--bg); color: #6b7280; } td { padding: 1rem; border-bottom: 1px solid var(--bg); } /* Buttons */ .btn { padding: 0.5rem 1rem; border-radius: 8px; border: none; cursor: pointer; font-weight: 500; transition: 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; } .btn-primary { background: var(--accent); color: white; } .btn-danger { background: var(--danger); color: white; } .btn-success { background: var(--success); color: white; } /* Modal (CSS Only) */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; justify-content: center; align-items: center; } .modal:target { display: flex; } .modal-content { background: var(--card); padding: 2rem; border-radius: var(--radius); width: 500px; max-width: 90%; } /* Mobile Responsive */ @media (max-width: 768px) { .sidebar { width: 70px; padding: 2rem 0.5rem; } .sidebar-logo span, .nav-links a span { display: none; } .main-content { margin-left: 70px; width: calc(100% - 70px); } }