style.css 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. /* ── reset & base ─────────────────────────────────────────────────── */
  2. * { box-sizing: border-box; margin: 0; padding: 0; }
  3. body {
  4. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  5. background: #0f1117;
  6. color: #c9d1d9;
  7. line-height: 1.6;
  8. }
  9. /* ── navbar ────────────────────────────────────────────────────────── */
  10. .navbar {
  11. display: flex;
  12. align-items: center;
  13. justify-content: space-between;
  14. padding: 0.75rem 1.5rem;
  15. background: #161b22;
  16. border-bottom: 1px solid #30363d;
  17. }
  18. .nav-brand {
  19. color: #58a6ff;
  20. font-weight: 700;
  21. font-size: 1.1rem;
  22. text-decoration: none;
  23. }
  24. .nav-brand:hover { text-decoration: none; }
  25. .nav-links { display: flex; gap: 1rem; }
  26. .nav-link {
  27. color: #8b949e;
  28. text-decoration: none;
  29. font-size: 0.9rem;
  30. }
  31. .nav-link:hover { color: #c9d1d9; text-decoration: none; }
  32. /* ── layout ────────────────────────────────────────────────────────── */
  33. .container { max-width: 1100px; margin: 0 auto; padding: 2rem; }
  34. /* ── headings ──────────────────────────────────────────────────────── */
  35. h1 { color: #58a6ff; margin-bottom: 1rem; font-size: 1.5rem; }
  36. h2 { color: #79c0ff; margin: 1.5rem 0 0.75rem; font-size: 1.2rem; }
  37. h3 { color: #79c0ff; margin: 1rem 0 0.5rem; font-size: 1rem; }
  38. /* ── links ─────────────────────────────────────────────────────────── */
  39. a { color: #58a6ff; text-decoration: none; }
  40. a:hover { text-decoration: underline; }
  41. /* ── cards ─────────────────────────────────────────────────────────── */
  42. .card {
  43. background: #161b22;
  44. border: 1px solid #30363d;
  45. border-radius: 6px;
  46. padding: 1.5rem;
  47. margin: 1rem 0;
  48. }
  49. /* ── tables ────────────────────────────────────────────────────────── */
  50. table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
  51. th, td {
  52. padding: 0.6rem 0.75rem;
  53. text-align: left;
  54. border-bottom: 1px solid #21262d;
  55. font-size: 0.875rem;
  56. }
  57. th { color: #8b949e; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
  58. tr:hover td { background: #1c2128; }
  59. /* ── badges ────────────────────────────────────────────────────────── */
  60. .badge {
  61. display: inline-block;
  62. padding: 0.15rem 0.5rem;
  63. border-radius: 12px;
  64. font-size: 0.75rem;
  65. font-weight: 600;
  66. }
  67. .badge-green { background: #238636; color: #fff; }
  68. .badge-red { background: #da3633; color: #fff; }
  69. .badge-deceased { background: #21262d; color: #c9d1d9; border: 1px solid #30363d; }
  70. .badge-gray { background: #30363d; color: #8b949e; }
  71. .badge-blue { background: #1f6feb; color: #fff; }
  72. /* ── buttons ───────────────────────────────────────────────────────── */
  73. .btn {
  74. display: inline-block;
  75. padding: 0.4rem 0.8rem;
  76. border-radius: 6px;
  77. font-size: 0.85rem;
  78. font-weight: 500;
  79. text-decoration: none;
  80. cursor: pointer;
  81. border: 1px solid transparent;
  82. line-height: 1.4;
  83. }
  84. .btn:hover { text-decoration: none; }
  85. .btn-primary { background: #238636; color: #fff; border-color: #2ea043; }
  86. .btn-primary:hover { background: #2ea043; }
  87. .btn-danger { background: #da3633; color: #fff; border-color: #f85149; }
  88. .btn-danger:hover { background: #f85149; }
  89. .btn-ghost { background: transparent; color: #58a6ff; border-color: #30363d; }
  90. .btn-ghost:hover { background: #1c2128; }
  91. .btn-delete { background: transparent; color: #6e7681; border-color: transparent; }
  92. .btn-delete:hover { color: #f85149; background: rgba(248, 81, 73, 0.1); }
  93. .btn-sm { padding: 0.25rem 0.55rem; font-size: 0.8rem; }
  94. /* ── row actions ───────────────────────────────────────────────────── */
  95. .row-actions { white-space: nowrap; text-align: right; }
  96. .row-actions .btn { margin-left: 0.25rem; }
  97. .row-actions .btn-delete { opacity: 0.4; }
  98. .row-actions .btn-delete:hover { opacity: 1; }
  99. tr:hover .row-actions .btn-delete { opacity: 0.7; }
  100. /* ── forms ─────────────────────────────────────────────────────────── */
  101. .form-group { margin-bottom: 1rem; }
  102. .form-group label {
  103. display: block;
  104. margin-bottom: 0.3rem;
  105. color: #8b949e;
  106. font-size: 0.85rem;
  107. }
  108. .form-group input,
  109. .form-group select,
  110. .form-group textarea {
  111. width: 100%;
  112. padding: 0.5rem 0.75rem;
  113. background: #0d1117;
  114. border: 1px solid #30363d;
  115. border-radius: 6px;
  116. color: #c9d1d9;
  117. font-size: 0.9rem;
  118. font-family: inherit;
  119. }
  120. .form-group input:focus,
  121. .form-group select:focus,
  122. .form-group textarea:focus {
  123. outline: none;
  124. border-color: #58a6ff;
  125. box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
  126. }
  127. .form-group textarea { resize: vertical; min-height: 80px; }
  128. .form-row { display: flex; gap: 1rem; }
  129. .form-row .form-group { flex: 1; }
  130. .form-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; }
  131. .form-hint { color: #6e7681; font-size: 0.8rem; margin-top: 0.2rem; }
  132. /* ── detail grid ───────────────────────────────────────────────────── */
  133. .detail-grid {
  134. display: grid;
  135. grid-template-columns: 180px 1fr;
  136. gap: 0.5rem 1rem;
  137. margin: 1rem 0;
  138. }
  139. .detail-label { color: #8b949e; font-size: 0.85rem; }
  140. .detail-value { font-size: 0.9rem; }
  141. /* ── toolbar ───────────────────────────────────────────────────────── */
  142. .toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
  143. .toolbar .search-input { max-width: 300px; }
  144. /* ── status ────────────────────────────────────────────────────────── */
  145. .status-ok { color: #3fb950; }
  146. .status-warn { color: #d29922; }
  147. /* ── empty state ───────────────────────────────────────────────────── */
  148. .empty { color: #6e7681; text-align: center; padding: 3rem; font-size: 0.95rem; }
  149. /* ── responsive ────────────────────────────────────────────────────── */
  150. @media (max-width: 700px) {
  151. .container { padding: 1rem; }
  152. .form-row { flex-direction: column; gap: 0; }
  153. .detail-grid { grid-template-columns: 1fr; }
  154. .toolbar { flex-direction: column; align-items: stretch; }
  155. .toolbar .search-input { max-width: none; }
  156. }
  157. /* ── autocomplete ──────────────────────────────────────────────────── */
  158. .autocomplete-dropdown {
  159. position: absolute;
  160. z-index: 100;
  161. background: #1c2128;
  162. border: 1px solid #30363d;
  163. border-radius: 6px;
  164. max-height: 280px;
  165. overflow-y: auto;
  166. box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  167. }
  168. .autocomplete-item {
  169. padding: 0.55rem 0.75rem;
  170. cursor: pointer;
  171. font-size: 0.85rem;
  172. border-bottom: 1px solid #21262d;
  173. }
  174. .autocomplete-item:last-child { border-bottom: none; }
  175. .autocomplete-item:hover,
  176. .autocomplete-item.active {
  177. background: #1f6feb;
  178. color: #fff;
  179. }
  180. .autocomplete-item .ac-main { font-weight: 500; }
  181. .autocomplete-item .ac-sub { font-size: 0.75rem; color: #8b949e; }
  182. .autocomplete-item:hover .ac-sub,
  183. .autocomplete-item.active .ac-sub { color: #c9d1d9; }
  184. .autocomplete-item .ac-coords { font-size: 0.7rem; color: #6e7681; float: right; }
  185. .autocomplete-item:hover .ac-coords,
  186. .autocomplete-item.active .ac-coords { color: #8b949e; }
  187. /* form-group needs relative positioning for the dropdown */
  188. .form-group { position: relative; }