:root {
  /* === Yellow + Gray Palette === */
  --bg: #f3f3f3;          /* light gray page background */
  --card: #ffffff;       /* white cards */
  --text: #2e2e2e;       /* dark gray text */
  --muted: #0d0404;      /* muted gray */
  --line: #d0d0d0;       /* borders / separators */

  --accent: #f5c400;     /* yellow accent */
  --danger: #d9534f;     /* muted red */
  --ok: #5cb85c;         /* muted green */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f7f7f7, #e6e6e6);
  color: var(--text);
}

.container {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

/* Header */
.header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

h1, h2 {
  margin: 0 0 10px;
  color: #333;
}

.small {
  color: var(--muted);
  font-size: 16px;
}

/* Layout */
.grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 720px){
  .grid { grid-template-columns: 1fr; }
}

/* Forms */
label {
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

input, select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fafafa;
  color: var(--text);
  outline: none;
}

input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,196,0,.25);
}

/* Actions / Buttons */
.actions {
  display:flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn {
  display:inline-block;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #eeeeee;
  color: #333;
  cursor:pointer;
  text-decoration:none;
  font-weight: 600;
}

.btn:hover {
  filter: brightness(0.97);
}

.btn.primary {
  background: #f5c400;
  border-color: #d6ab00;
  color: #222;
}

.btn.danger {
  background: #f2dede;
  border-color: #d9534f;
  color: #a94442;
}

/* Divider */
.hr {
  height:1px;
  background: var(--line);
  margin: 16px 0;
}

/* Alerts */
.alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0;
  border:1px solid var(--line);
  background: #f9f9f9;
}

.alert.error {
  border-color: #d9534f;
  background: #fbeaea;
}

.alert.ok {
  border-color: #5cb85c;
  background: #edf7ed;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table th {
  padding: 10px;
  background: #f0f0f0;
  border-bottom: 2px solid var(--line);
  text-align:left;
  color:#333;
}

.table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align:left;
  background:#ffffff;
}

/* Badges */
.badge {
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  background:#eeeeee;
}

.badge.primary {
  color: #222;
  border-color: #d6ab00;
  background: #ffe680;
}

/* Key / Value rows */
.kv {
  display:grid;
  grid-template-columns: 140px 1fr;
  gap:10px;
  margin-top:8px;
}

.kv div:nth-child(odd){
  color: var(--muted);
}

/* Checkbox rows */
.checkrow {
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:8px;
}
.bottom-strip {
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
}
.bottom-strip a { text-decoration: none; }
.bottom-strip a:hover { text-decoration: underline; }

/* =========================================================
   Modern Admin Table UI (Family Users)
   ========================================================= */

:root {
  --card-bg: #fff;
  --card-border: #e6e8ef;
  --card-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --muted: #667085;
  --text: #101828;

  --primary: #2563eb;
  --danger: #dc2626;

  --row-hover: #f9fafb;
  --row-alt: #fcfcfd;

  --chip-bg: #f2f4f7;
  --chip-border: #e4e7ec;
}

.admin-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 18px;
  max-width: 1200px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.admin-title h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--text);
}

.admin-title .sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.admin-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Dark Gray Search Bar */
.searchbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: 12px;

  background: #2f343a;         /* dark gray background */
  border: 1px solid #3d444d;   /* slightly lighter border */
}

/* Search input */
.searchbar input[type="text"] {
  min-width: 260px;
  max-width: 420px;
  width: 100%;
  padding: 10px 12px;

  background: #3a4047;        /* darker input */
  border: 1px solid #4b5563;
  border-radius: 10px;
  outline: none;

  color: #ffffff;             /* white text */
  font-size: 14px;
}

/* Placeholder color */
.searchbar input[type="text"]::placeholder {
  color: #cbd5e1;
}

/* Focus effect */
.searchbar input[type="text"]:focus {
  border-color: #959799;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}


/* Checkbox label text */
.searchbar .check {
  color: #e5e7eb;
  font-size: 14px;
}


/* Primary Button - Yellow Theme */
/* ================= BUTTONS ================= */

.btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #e6b800;
  background: linear-gradient(180deg, #f5c400, #e6b800);
  color: #2e2e2e;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover */
.btn:hover {
  background: linear-gradient(180deg, #ffd633, #f5c400);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* Active */
.btn:active {
  transform: translateY(0px);
  box-shadow: none;
}

/* Primary Button (Yellow Solid) */
.btn-primary {
  background: linear-gradient(180deg, #f5c400, #e6b800);
  border-color: #e6b800;
  color: #2e2e2e;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ffd633, #f5c400);
  border-color: #cc9a00;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* Danger Button */
.btn-danger {
  background: #fff;
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

.btn-danger:hover {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.55);
}

/* ================= TABLE ================= */

.table-wrap {
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.table-scroll {
  overflow-x: auto;
}

.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

.table-modern thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 12px 12px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.table-modern tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 14px;
  color: #111827;
  vertical-align: middle;
}

.table-modern tbody tr:nth-child(even) td {
  background: #fafafa;
}

.table-modern tbody tr:hover td {
  background: #f3f4f6;
}

/* ================= CHIPS ================= */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

/* PRIMARY CHIP → Yellow (Replaced Blue) */
.chip-primary {
  background: rgba(245, 196, 0, 0.15);
  border-color: rgba(245, 196, 0, 0.35);
  color: #b8860b;
}

/* SUCCESS CHIP → Soft Green */
.chip-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.18);
  color: #15803d;
}

/* DANGER CHIP */
.chip-danger {
  background: rgba(220, 38, 38, 0.10);
  border-color: rgba(220, 38, 38, 0.18);
  color: #b91c1c;
}

/* ================= ACTIONS ================= */

.row-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions a {
  text-decoration: none;
}

.small-note {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
}

/* ================= MOBILE ================= */

@media (max-width: 700px) {
  .admin-card { padding: 14px; }
  .searchbar input[type="text"] { min-width: 200px; }
}
/* =========================================================
   DASHBOARD (Public User Dashboard)
   Palette: dark gray, light gray, light yellow, yellow
   Rule: all new class/id begin with "dashboard"
   ========================================================= */

:root{
  --dashboard-bg: #f3f3f3;          /* light gray */
  --dashboard-card: #ffffff;        /* white */
  --dashboard-text: #2e2e2e;        /* dark gray text */
  --dashboard-muted: #6f6f6f;       /* gray text */
  --dashboard-line: #d0d0d0;        /* light gray border */

  --dashboard-dark: #2f343a;        /* dark gray */
  --dashboard-dark2: #3a4047;       /* slightly lighter dark gray */

  --dashboard-yellow: #f5c400;      /* yellow */
  --dashboard-yellow2: #e6b800;     /* deeper yellow */
  --dashboard-yellowLight: rgba(245, 196, 0, 0.14); /* light yellow bg */

  --dashboard-shadow: 0 12px 28px rgba(16,24,40,0.10);
  --dashboard-radius: 16px;
}

/* Page wrapper */
#dashboardPage{
  padding: 18px 0 32px;
  background: transparent;
}

.dashboardWrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Main card */
.dashboardCard{
  background: var(--dashboard-card);
  border: 1px solid rgba(208,208,208,0.85);
  border-radius: var(--dashboard-radius);
  box-shadow: var(--dashboard-shadow);
  padding: 18px;
}

/* Header */
.dashboardHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.dashboardHeaderTitle h1{
  margin:0;
  font-size:22px;
  line-height:1.2;
  color: var(--dashboard-text);
}

.dashboardHeaderMeta{
  margin-top: 6px;
  color: var(--dashboard-muted);
  font-size: 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.dashboardActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* Buttons (gray + yellow only) */
.dashboardBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(208,208,208,0.95);

  background: #fff;
  color: var(--dashboard-dark);
  font-weight: 800;
  font-size: 14px;
  text-decoration:none;
  cursor:pointer;

  transition: transform .06s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.dashboardBtn:hover{
  background:#f9fafb;
  border-color:#c7c7c7;
}

.dashboardBtn:active{
  transform: translateY(1px);
}

/* Primary = Yellow */
.dashboardBtnPrimary{
  border-color: var(--dashboard-yellow2);
  background: linear-gradient(180deg, var(--dashboard-yellow), var(--dashboard-yellow2));
  color:#2f343a;
}

.dashboardBtnPrimary:hover{
  background: linear-gradient(180deg, #ffd633, var(--dashboard-yellow));
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

/* Danger becomes dark-gray (no red) */
.dashboardBtnDanger{
  border-color: rgba(47,52,58,0.35);
  background: #fff;
  color: var(--dashboard-dark);
}

.dashboardBtnDanger:hover{
  background: #f3f4f6;
  border-color: rgba(47,52,58,0.55);
}

/* Headings + separators */
.dashboardH2{
  margin: 16px 0 8px;
  font-size: 16px;
  color: var(--dashboard-text);
}

.dashboardSmall{
  color: var(--dashboard-muted);
  font-size: 13px;
}

.dashboardHr{
  height:1px;
  background: rgba(208,208,208,0.80);
  margin: 16px 0;
}

/* Badges (gray + yellow only) */
.dashboardBadge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(208,208,208,0.95);
  background: #f3f4f6;
  color: var(--dashboard-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.dashboardBadgePrimary{
  border-color: rgba(245,196,0,0.45);
  background: var(--dashboard-yellowLight);
  color: #6b5200; /* deep yellow-brown (still in yellow family) */
}

/* Alerts (NO green/red) — only gray/yellow */
.dashboardAlert{
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(208,208,208,0.95);
  background: #f9fafb;
  padding: 12px 12px;
  color: var(--dashboard-dark);
}

.dashboardAlertInfo{
  border-color: rgba(245,196,0,0.45);
  background: var(--dashboard-yellowLight);
}

.dashboardAlertOk{
  border-color: rgba(245,196,0,0.45);
  background: var(--dashboard-yellowLight);
}

.dashboardAlertError{
  border-color: rgba(245,196,0,0.45);
  background: var(--dashboard-yellowLight);
}

.dashboardAlertActions{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Key/Value grid */
.dashboardKV{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(208,208,208,0.95);
  background: #fff;
}

.dashboardKV > div{
  font-size: 14px;
  color:#111827;
}

.dashboardKV .dashboardKVKey{
  color: var(--dashboard-muted);
  font-weight: 800;
}

/* Apps grid */
.dashboardApps{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.dashboardAppCard{
  flex: 1 1 220px;
  min-width: 220px;
  border-radius: 16px;
  border: 1px solid rgba(208,208,208,0.90);
  background:#fff;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(16,24,40,0.06);
}

.dashboardAppTitle{
  font-weight: 900;
  font-size: 15px;
  color: var(--dashboard-dark);
}

.dashboardAppDesc{
  margin-top:6px;
  color: var(--dashboard-muted);
  font-size: 13px;
}

/* Table */
.dashboardTableWrap{
  margin-top: 12px;
  border: 1px solid rgba(208,208,208,0.90);
  border-radius: 14px;
  overflow: hidden;
  background:#fff;
}

.dashboardTableScroll{
  overflow-x:auto;
}

.dashboardTable{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 860px;
}

.dashboardTable thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background:#f9fafb;
  color: var(--dashboard-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 12px;
  border-bottom: 1px solid rgba(208,208,208,0.90);
  white-space: nowrap;
}

.dashboardTable tbody td{
  padding: 12px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 14px;
  color:#111827;
  vertical-align: middle;
}

.dashboardTable tbody tr:nth-child(even) td{
  background:#fcfcfd;
}

.dashboardTable tbody tr:hover td{
  background:#f3f4f6;
}

/* Responsive */
@media (max-width: 720px){
  .dashboardKV{
    grid-template-columns: 1fr;
  }
}
.field-error{
  color:#b91c1c;
  font-size:13px;
  margin-top:6px;
}
.search-input{
  width:100%;
  padding:10px;
  border:1px solid #d1d5db;
  border-radius:8px;
  background:#fff;
}

.field-error{
  color:#b91c1c;
  font-size:13px;
  margin-top:6px;
}
