/* ── reset & base ─────────────────────────────────────────────────── */ * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0f1117; color: #c9d1d9; line-height: 1.6; } /* ── navbar ────────────────────────────────────────────────────────── */ .navbar { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.5rem; background: #161b22; border-bottom: 1px solid #30363d; } .nav-brand { color: #58a6ff; font-weight: 700; font-size: 1.1rem; text-decoration: none; } .nav-brand:hover { text-decoration: none; } .nav-links { display: flex; gap: 1rem; } .nav-link { color: #8b949e; text-decoration: none; font-size: 0.9rem; } .nav-link:hover { color: #c9d1d9; text-decoration: none; } /* ── layout ────────────────────────────────────────────────────────── */ .container { max-width: 1100px; margin: 0 auto; padding: 2rem; } /* ── headings ──────────────────────────────────────────────────────── */ h1 { color: #58a6ff; margin-bottom: 1rem; font-size: 1.5rem; } h2 { color: #79c0ff; margin: 1.5rem 0 0.75rem; font-size: 1.2rem; } h3 { color: #79c0ff; margin: 1rem 0 0.5rem; font-size: 1rem; } /* ── links ─────────────────────────────────────────────────────────── */ a { color: #58a6ff; text-decoration: none; } a:hover { text-decoration: underline; } /* ── cards ─────────────────────────────────────────────────────────── */ .card { background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 1.5rem; margin: 1rem 0; } /* ── tables ────────────────────────────────────────────────────────── */ table { width: 100%; border-collapse: collapse; margin: 1rem 0; } th, td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid #21262d; font-size: 0.875rem; } th { color: #8b949e; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; } tr:hover td { background: #1c2128; } /* ── badges ────────────────────────────────────────────────────────── */ .badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; } .badge-green { background: #238636; color: #fff; } .badge-red { background: #da3633; color: #fff; } .badge-deceased { background: #21262d; color: #c9d1d9; border: 1px solid #30363d; } .badge-gray { background: #30363d; color: #8b949e; } .badge-blue { background: #1f6feb; color: #fff; } /* ── buttons ───────────────────────────────────────────────────────── */ .btn { display: inline-block; padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.85rem; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.4; } .btn:hover { text-decoration: none; } .btn-primary { background: #238636; color: #fff; border-color: #2ea043; } .btn-primary:hover { background: #2ea043; } .btn-danger { background: #da3633; color: #fff; border-color: #f85149; } .btn-danger:hover { background: #f85149; } .btn-ghost { background: transparent; color: #58a6ff; border-color: #30363d; } .btn-ghost:hover { background: #1c2128; } .btn-delete { background: transparent; color: #6e7681; border-color: transparent; } .btn-delete:hover { color: #f85149; background: rgba(248, 81, 73, 0.1); } .btn-sm { padding: 0.25rem 0.55rem; font-size: 0.8rem; } /* ── row actions ───────────────────────────────────────────────────── */ .row-actions { white-space: nowrap; text-align: right; } .row-actions .btn { margin-left: 0.25rem; } .row-actions .btn-delete { opacity: 0.4; } .row-actions .btn-delete:hover { opacity: 1; } tr:hover .row-actions .btn-delete { opacity: 0.7; } /* ── forms ─────────────────────────────────────────────────────────── */ .form-group { margin-bottom: 1rem; } .form-group label { display: block; margin-bottom: 0.3rem; color: #8b949e; font-size: 0.85rem; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.5rem 0.75rem; background: #0d1117; border: 1px solid #30363d; border-radius: 6px; color: #c9d1d9; font-size: 0.9rem; font-family: inherit; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #58a6ff; box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15); } .form-group textarea { resize: vertical; min-height: 80px; } .form-row { display: flex; gap: 1rem; } .form-row .form-group { flex: 1; } .form-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; } .form-hint { color: #6e7681; font-size: 0.8rem; margin-top: 0.2rem; } /* ── detail grid ───────────────────────────────────────────────────── */ .detail-grid { display: grid; grid-template-columns: 180px 1fr; gap: 0.5rem 1rem; margin: 1rem 0; } .detail-label { color: #8b949e; font-size: 0.85rem; } .detail-value { font-size: 0.9rem; } /* ── toolbar ───────────────────────────────────────────────────────── */ .toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; } .toolbar .search-input { max-width: 300px; } /* ── status ────────────────────────────────────────────────────────── */ .status-ok { color: #3fb950; } .status-warn { color: #d29922; } /* ── empty state ───────────────────────────────────────────────────── */ .empty { color: #6e7681; text-align: center; padding: 3rem; font-size: 0.95rem; } /* ── responsive ────────────────────────────────────────────────────── */ @media (max-width: 700px) { .container { padding: 1rem; } .form-row { flex-direction: column; gap: 0; } .detail-grid { grid-template-columns: 1fr; } .toolbar { flex-direction: column; align-items: stretch; } .toolbar .search-input { max-width: none; } } /* ── autocomplete ──────────────────────────────────────────────────── */ .autocomplete-dropdown { position: absolute; z-index: 100; background: #1c2128; border: 1px solid #30363d; border-radius: 6px; max-height: 280px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.4); } .autocomplete-item { padding: 0.55rem 0.75rem; cursor: pointer; font-size: 0.85rem; border-bottom: 1px solid #21262d; } .autocomplete-item:last-child { border-bottom: none; } .autocomplete-item:hover, .autocomplete-item.active { background: #1f6feb; color: #fff; } .autocomplete-item .ac-main { font-weight: 500; } .autocomplete-item .ac-sub { font-size: 0.75rem; color: #8b949e; } .autocomplete-item:hover .ac-sub, .autocomplete-item.active .ac-sub { color: #c9d1d9; } .autocomplete-item .ac-coords { font-size: 0.7rem; color: #6e7681; float: right; } .autocomplete-item:hover .ac-coords, .autocomplete-item.active .ac-coords { color: #8b949e; } /* form-group needs relative positioning for the dropdown */ .form-group { position: relative; }