/* ── Reset & Base ──────────────────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #0d1117; --surface: #161b22; --surface-2: #1c2128; --border: #30363d; --border-soft: #21262d; --text: #e6edf3; --muted: #7d8590; --brand: #6366f1; --brand-dim: #4338ca; --success: #3fb950; --danger: #f85149; --warning: #d29922; --shadow-sm: 0 1px 3px rgba(0,0,0,.4); --shadow-md: 0 4px 12px rgba(0,0,0,.5); --shadow-lg: 0 8px 24px rgba(0,0,0,.6); --radius: 8px; --radius-lg: 12px; --sidebar-w: 220px; --transition: .15s ease; } html { height: 100%; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif; font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); height: 100%; -webkit-font-smoothing: antialiased; } /* ── Animations ────────────────────────────────────────────────────────────── */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideInRight { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } } @keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } } @keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } } .anim-fade-up { animation: fadeInUp .3s ease both; } .anim-scale-in { animation: scaleIn .25s ease both; } /* stagger children */ .stagger > * { animation: fadeInUp .3s ease both; } .stagger > *:nth-child(1) { animation-delay: .04s; } .stagger > *:nth-child(2) { animation-delay: .08s; } .stagger > *:nth-child(3) { animation-delay: .12s; } .stagger > *:nth-child(4) { animation-delay: .16s; } .mobile-topbar, .sidebar-backdrop { display: none; } .mobile-topbar-brand { display: flex; align-items: center; gap: 8px; } .mobile-title { font-size: 14px; font-weight: 700; letter-spacing: -.2px; } .mobile-menu-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; } /* ── Sidebar ────────────────────────────────────────────────────────────────── */ .sidebar { position: fixed; inset-block: 0; left: 0; width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 30; } .sidebar-logo { padding: 20px 18px 18px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: 10px; } .sidebar-logo-icon { font-size: 22px; line-height: 1; } .sidebar-logo-name { font-weight: 700; font-size: 15px; color: var(--text); letter-spacing: -.2px; } .sidebar-logo-sub { font-size: 11px; color: var(--muted); margin-top: 1px; } .sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; } .nav-item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--radius); font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; transition: background var(--transition), color var(--transition); cursor: pointer; } .nav-item:hover { background: var(--surface-2); color: var(--text); } .nav-item.active { background: rgba(99,102,241,.15); color: #a5b4fc; font-weight: 600; } .nav-item .nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; } .sidebar-footer { padding: 14px 14px; border-top: 1px solid var(--border-soft); } .status-pill { display: flex; align-items: center; gap: 7px; font-size: 12px; padding: 6px 10px; border-radius: 20px; } .status-ok { background: rgba(63,185,80,.1); color: #3fb950; } .status-warn { background: rgba(210,153,34,.1); color: #d29922; } .status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse-dot 2s ease infinite; flex-shrink: 0; } /* ── Main layout ───────────────────────────────────────────────────────────── */ .main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; } .page-body { padding: 32px 36px; flex: 1; } .page-title { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -.3px; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; } /* ── Cards ─────────────────────────────────────────────────────────────────── */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; transition: box-shadow var(--transition); } .card:hover { box-shadow: var(--shadow-sm); } .card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); transition: box-shadow var(--transition), transform var(--transition); } .person-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--muted); border-radius: var(--radius-lg); padding: 18px 20px; transition: box-shadow var(--transition), transform var(--transition); } .person-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } /* ── Metric cards ──────────────────────────────────────────────────────────── */ .metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; transition: box-shadow var(--transition), transform var(--transition); } .metric-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); } .metric-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 8px; } .metric-value { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -.5px; } .metric-sub { font-size: 12px; color: var(--muted); margin-top: 5px; } .stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 3px; } .stat-value { font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -.3px; } /* ── Avatars ────────────────────────────────────────────────────────────────── */ .avatar { border-radius: 50%; object-fit: cover; object-position: top center; flex-shrink: 0; } .avatar-xs { width: 22px; height: 22px; } .avatar-sm { width: 28px; height: 28px; } .avatar-md { width: 36px; height: 36px; } .avatar-lg { width: 48px; height: 48px; } .avatar-ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border); } /* ── Badges ─────────────────────────────────────────────────────────────────── */ .badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; letter-spacing: .02em; white-space: nowrap; } .badge-red { background: rgba(248,81,73,.12); color: #f85149; border: 1px solid rgba(248,81,73,.25); } .badge-green { background: rgba(63,185,80,.12); color: #3fb950; border: 1px solid rgba(63,185,80,.25); } .badge-gray { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); } .badge-blue { background: rgba(88,166,255,.1); color: #58a6ff; border: 1px solid rgba(88,166,255,.2); } .badge-purple { background: rgba(163,113,247,.1); color: #a371f7; border: 1px solid rgba(163,113,247,.2); } .badge-amber { background: rgba(210,153,34,.1); color: #e3b341; border: 1px solid rgba(210,153,34,.2); } /* ── Forms ──────────────────────────────────────────────────────────────────── */ .form-group { margin-bottom: 14px; } .form-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; } .form-input, .form-select { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); padding: 8px 12px; font-size: 13px; transition: border-color var(--transition), box-shadow var(--transition); outline: none; font-family: inherit; } .form-input:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.18); } .form-input::placeholder { color: var(--muted); opacity: .6; } textarea.form-input { resize: vertical; min-height: 60px; } /* ── Buttons ────────────────────────────────────────────────────────────────── */ .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff; font-weight: 600; font-size: 13px; padding: 8px 18px; border-radius: var(--radius); border: none; cursor: pointer; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); font-family: inherit; letter-spacing: .01em; } .btn-primary:hover { background: var(--brand-dim); box-shadow: 0 4px 12px rgba(99,102,241,.4); } .btn-primary:active { transform: scale(.97); } .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 13px; padding: 8px 18px; border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; transition: background var(--transition), color var(--transition); text-decoration: none; font-family: inherit; } .btn-secondary:hover { background: var(--border); color: var(--text); } .btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(248,81,73,.1); color: #f85149; font-weight: 600; font-size: 13px; padding: 8px 18px; border-radius: var(--radius); border: 1px solid rgba(248,81,73,.25); cursor: pointer; transition: background var(--transition), box-shadow var(--transition); font-family: inherit; } .btn-danger:hover { background: rgba(248,81,73,.2); } .btn-ghost { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--muted); border: none; cursor: pointer; transition: color var(--transition); font-family: inherit; padding: 2px 4px; border-radius: 4px; } .btn-ghost:hover { color: var(--danger); } /* ── Tables ─────────────────────────────────────────────────────────────────── */ .data-table { width: 100%; border-collapse: collapse; font-size: 13px; } .data-table th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); } .data-table th.r { text-align: right; } .data-table th.c { text-align: center; } .data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border-soft); color: var(--text); vertical-align: middle; } .data-table tbody tr { transition: background var(--transition); } .data-table tbody tr:hover { background: rgba(255,255,255,.02); } .data-table tbody tr:last-child td { border-bottom: none; } .data-table tfoot td { border-top: 1px solid var(--border); padding: 10px 14px; font-weight: 600; } /* ── Flash messages ─────────────────────────────────────────────────────────── */ .flash-wrap { position: fixed; top: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; width: 320px; } .flash-msg { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 500; border: 1px solid transparent; box-shadow: var(--shadow-lg); animation: slideInRight .25s ease both; transition: opacity .3s ease, transform .3s ease; display: flex; align-items: flex-start; gap: 8px; } .flash-success { background: #0d2618; border-color: rgba(63,185,80,.3); color: #3fb950; } .flash-error { background: #2d0f0e; border-color: rgba(248,81,73,.3); color: #f85149; } .flash-info { background: #131c2e; border-color: rgba(88,166,255,.3); color: #58a6ff; } /* ── Dividers ───────────────────────────────────────────────────────────────── */ .divider { height: 1px; background: var(--border-soft); margin: 14px 0; } /* ── Section headers ────────────────────────────────────────────────────────── */ .section-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; } /* ── Availability box ───────────────────────────────────────────────────────── */ .avail-box { padding: 10px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 500; margin-bottom: 12px; border: 1px solid; } .avail-ok { background: rgba(63,185,80,.08); border-color: rgba(63,185,80,.2); color: #3fb950; } .avail-out { background: rgba(248,81,73,.08); border-color: rgba(248,81,73,.2); color: #f85149; } .avail-mid { background: rgba(210,153,34,.08); border-color: rgba(210,153,34,.2); color: #d29922; } /* ── Total preview box ──────────────────────────────────────────────────────── */ .total-box { padding: 10px 14px; border-radius: var(--radius); background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.2); font-size: 13px; color: #a5b4fc; margin-bottom: 12px; } /* ── Scrollbar ──────────────────────────────────────────────────────────────── */ ::-webkit-scrollbar { width: 5px; height: 5px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; } ::-webkit-scrollbar-thumb:hover { background: var(--muted); } /* ── Details/Summary ────────────────────────────────────────────────────────── */ details > summary { list-style: none; cursor: pointer; } details > summary::-webkit-details-marker { display: none; } /* ── Config sections ────────────────────────────────────────────────────────── */ .config-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; } .config-section-header { padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border-soft); font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; } .config-section-body { padding: 20px; } .config-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; } .config-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; } .config-row:last-child { margin-bottom: 0; } /* ── Suggestion chip ────────────────────────────────────────────────────────── */ .suggestion-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(210,153,34,.1); border: 1px solid rgba(210,153,34,.2); border-radius: 20px; padding: 4px 10px; font-size: 12px; color: #e3b341; cursor: pointer; transition: background var(--transition); } .suggestion-chip:hover { background: rgba(210,153,34,.2); } /* ── Mono ───────────────────────────────────────────────────────────────────── */ .mono { font-family: "SF Mono", "Fira Code", monospace; } /* ── Utility ────────────────────────────────────────────────────────────────── */ .text-muted { color: var(--muted); } .text-danger { color: var(--danger); } .text-success { color: var(--success); } .text-warning { color: var(--warning); } .text-brand { color: var(--brand); } .w-full { width: 100%; } @media (max-width: 1023px) { body.sidebar-open { overflow: hidden; } .mobile-topbar { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); background: rgba(13,17,23,.92); backdrop-filter: blur(8px); } .sidebar-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); } body.sidebar-open .sidebar-backdrop { display: block; } .sidebar { width: min(84vw, 300px); z-index: 50; transform: translateX(-110%); transition: transform .22s ease; box-shadow: var(--shadow-lg); } body.sidebar-open .sidebar { transform: translateX(0); } .main { margin-left: 0; min-height: calc(100vh - 56px); } .page-body { padding: 16px 14px 22px; } .page-title { font-size: 18px; margin-bottom: 16px; gap: 8px; } .card, .metric-card, .person-card { padding: 14px; border-radius: 10px; } .metric-value { font-size: 24px; } .stat-value { font-size: 20px; } .data-table th { padding: 8px 10px; font-size: 10px; } .data-table td { padding: 9px 10px; font-size: 12px; } .flash-wrap { top: 64px; left: 12px; right: 12px; width: auto; } .config-row, .config-row.cols-3 { grid-template-columns: 1fr; } } @media (max-width: 640px) { .section-title { font-size: 12px; } .form-label { font-size: 11px; } }