:root {
  --bg: #F5F7F9;           /* soft light background */
  --bg-card: #FFFFFF;      /* white cards */
  --bg-header: #FFFFFF;    /* white header */
  --accent: #0F5F73;       /* primary trust teal */
  --accent-dark: #0A3F4A;  /* deeper petrol teal */
  --accent-soft: #E1EEF2;  /* light teal wash */
  --accent-success: #118597; /* softer success teal */
  --accent-warn: #C9A96A;  /* muted gold for special/warn */
  --border-subtle: #D1D7E0;
  --border-strong: #B3BECF;
  --text-main: #1A1A1A;    /* charcoal */
  --text-muted: #6B7280;   /* slate */
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-subtle: 0 6px 18px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #FFFFFF 0, #F5F7F9 42%, #EDF1F5 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* HEADER / NAV */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(209, 215, 224, 0.9);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: none; /* DO NOT uppercase Custod-i */
  color: var(--text-muted);
}

/* Remove old badge ::before entirely */
.brand::before {
  content: none !important;
}

nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 16px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 0.18s ease-out;
}

nav a:hover {
  color: var(--accent-dark);
  border-color: var(--border-subtle);
  background: #FFFFFF;
}



/* LAYOUT / TYPOGRAPHY */

main {
  padding-bottom: 40px;
}
main .container {
  padding-top: 24px;
}

h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #0A1016;
}

p {
  margin-top: 0;
}

.small {
  font-size: 13px;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 18px;
}
.grid-2 {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
}

/* CARDS / FORMS / BUTTONS */

.card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 20px;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(15, 95, 115, 0.09), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(201, 169, 106, 0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}
.card > * {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111827;
}

/* Inputs */

.input,
input[type="text"],
input[type="file"],
input[type="email"],
textarea,
select {
  width: 100%;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.input:hover,
input:hover,
textarea:hover,
select:hover {
  border-color: var(--border-strong);
}
.input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(15, 95, 115, 0.28);
  background: #FFFFFF;
}

/* Primary buttons */

.btn,
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(15, 95, 115, 0.15);
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 24px rgba(10, 63, 74, 0.26);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s, background 0.12s;
}
.btn:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(10, 63, 74, 0.30);
  filter: brightness(1.03);
}
.btn:active,
button:active {
  transform: translateY(0);
  box-shadow: 0 7px 18px rgba(10, 63, 74, 0.22);
}

/* Secondary pill actions */

.action {
  margin: 0 4px 4px 0;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #F9FAFB;
  color: var(--accent-dark);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.16s ease-out;
}
.action:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* TABLES */

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  font-size: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

thead {
  background: linear-gradient(90deg, #F3F6FA, #EEF3F8);
}
th,
td {
  padding: 9px 10px;
  text-align: left;
  white-space: nowrap;
}
th {
  font-weight: 500;
  color: #111827;
  border-bottom: 1px solid #E1E5EE;
}
td {
  color: var(--text-muted);
  border-top: 1px solid #EEF1F6;
}
tbody tr:nth-child(even) td {
  background-color: #FBFCFE;
}
tbody tr:nth-child(odd) td {
  background-color: #FFFFFF;
}
tbody tr:hover td {
  background-color: #EDF5F7;
  color: #111827;
}

/* links in tables */

td a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 500;
}
td a:hover {
  text-decoration: underline;
}

/* KEY-VALUE / LOGS */

.kv {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr;
  gap: 6px 16px;
  font-size: 13px;
}
.kv > div:nth-child(odd) {
  color: var(--text-muted);
}
.kv > div:nth-child(even) {
  color: var(--text-main);
}

.rule {
  height: 1px;
  background: rgba(209, 215, 224, 0.9);
  margin: 16px 0;
}

.log {
  font-size: 12px;
  color: var(--text-muted);
}
.log p {
  margin: 4px 0;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(209, 215, 224, 0.9);
  margin-top: 32px;
  background: #FFFFFF;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  nav a {
    margin-left: 10px;
  }
  .header .container {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
}
