/* Base styles */ body { color: #f8fafc; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); min-height: 100vh; font-family: 'Inter', sans-serif; line-height: 1.6; margin: 0; padding: 0; } /* Layout improvements */ main { padding: 2rem; margin-left: 280px; max-width: calc(100vw - 280px); min-height: calc(100vh - 4rem); overflow-x: hidden; position: relative; background: rgba(2, 6, 23, 0.5); backdrop-filter: blur(8px); } @media (max-width: 1024px) { main { margin-left: 0; max-width: 100vw; padding: 1.5rem; min-height: calc(100vh - 3rem); } custom-sidebar { transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 100; } custom-sidebar.active { transform: translateX(0); box-shadow: 4px 0 15px rgba(0, 0, 0, 0.8); } } /* Modern spacing system */ :root { --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem; --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem; --space-3xl: 4rem; --sidebar-width: 280px; --header-height: 80px; --border-radius: 0.75rem; --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } /* Futuristic scrollbars */ ::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; } ::-webkit-scrollbar-track { background: rgba(30, 41, 59, 0.5); border-radius: 5px; } ::-webkit-scrollbar-thumb { background: linear-gradient(45deg, #3b82f6, #6366f1); border-radius: 5px; border: 2px solid rgba(30, 41, 59, 0.5); background-clip: padding-box; } ::-webkit-scrollbar-thumb:hover { background: linear-gradient(45deg, #2563eb, #4f46e5); border: 2px solid rgba(30, 41, 59, 0.7); } /* Modern inputs */ input, select { background-color: rgba(15, 23, 42, 0.7); border: 1px solid rgba(71, 85, 105, 0.7); color: #f8fafc; border-radius: var(--border-radius); padding: 0.75rem 1.25rem; font-size: 0.9375rem; transition: var(--transition); width: 100%; backdrop-filter: blur(8px); } input:focus, select:focus { outline: none; border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3); background-color: rgba(15, 23, 42, 0.9); } /* Modern buttons */ button { transition: var(--transition); border-radius: var(--border-radius); padding: 0.875rem 1.75rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; border: none; cursor: pointer; font-size: 0.9375rem; backdrop-filter: blur(8px); } button:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1); } button:active { transform: translateY(0); } /* Modern status badges */ .status-badge { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); transition: var(--transition); min-width: 100px; text-align: center; } .status-badge.compliant { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.4)); color: #34d399; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); } .status-badge.non-compliant { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.4)); color: #f87171; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); } .status-badge:hover { transform: scale(1.05); } .status-good { color: #34d399; } .status-warning { color: #fbbf24; } .status-bad { color: #f87171; } .devices-list td { white-space: nowrap; min-width: 100px; } .devices-list th { min-width: 120px; } .devices-list th:first-child, .devices-list td:first-child { position: sticky; left: 0; background: rgba(15, 23, 42, 0.95); z-index: 1; } /* Improved table readability */ table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; } th { text-align: left; padding: 0.75rem 1rem; font-weight: 600; color: #94a3b8; background-color: rgba(15, 23, 42, 0.95); backdrop-filter: blur(8px); position: sticky; top: 0; border-bottom: 1px solid #334155; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; } td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(51, 65, 85, 0.2); color: #e2e8f0; transition: all 0.2s ease; } tr:hover td { background-color: rgba(30, 64, 175, 0.1); } tr:last-child td { border-bottom: none; } /* Better visual hierarchy */ .main-content { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; } .filter-panel { position: sticky; top: 1rem; align-self: start; } /* Modern card shadows */ .stat-card { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .stat-card:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); transform: translateY(-2px); }