/* ==========================================================
   GLOBAL MODERN THEME (auto light/dark based on system)
   ========================================================== */
:root {
  --fc-bg: #0b0c0f;
  --fc-card: #111318;
  --fc-border: #1d212a;
  --fc-text: #e7e9ee;
  --fc-muted: #a8afbf;
  --fc-accent: #4f46e5;
  --fc-accent-contrast: #ffffff;
  --fc-focus: rgba(79,70,229,0.35);
  --fc-shadow: 0 6px 24px rgba(0,0,0,0.25);
  --fc-radius: 14px;
  --fc-radius-lg: 18px;
  --fc-yellow: #fff6cc;
}

@media (prefers-color-scheme: light) {
  :root {
    --fc-bg: #f7f8fb;
    --fc-card: #ffffff;
    --fc-border: #e6e8ef;
    --fc-text: #101218;
    --fc-muted: #5b6270;
    --fc-shadow: 0 6px 20px rgba(15,23,42,0.06);
  }
}

/* ==========================================================
   PAGE WRAPPER
   ========================================================== */
.fc-wrap.fc-modern {
  max-width: 900px;
  margin: 2rem auto;
  display: grid;
  gap: 18px;
  color: var(--fc-text);
}

.fc-page-header { display:flex; flex-direction:column; gap:6px; }
.fc-title { margin:0; font-size:28px; font-weight:700; }
.fc-subtitle { color:var(--fc-muted); font-size:14px; }

/* ==========================================================
   CARDS
   ========================================================== */
.fc-card {
  background: var(--fc-card);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow);
  padding: 16px;
}

.fc-card-header { margin-bottom: 12px; }
.fc-card-title { margin:0 0 4px 0; font-size:17px; font-weight:600; }
.fc-card-desc { margin:0; color:var(--fc-muted); font-size:13px; }

/* ==========================================================
   INPUTS
   ========================================================== */
.fc-input,
.fc-select,
.fc-table input[type="time"] {
  width:100%;
  border:1px solid var(--fc-border);
  background: transparent;
  color: var(--fc-text);
  border-radius: var(--fc-radius);
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.fc-input::placeholder { color: var(--fc-muted); }

.fc-input:focus,
.fc-select:focus {
  border-color: var(--fc-accent);
  box-shadow: 0 0 0 4px var(--fc-focus);
}

/* ==========================================================
   CHILD CARDS + ADD BUTTON
   ========================================================== */
.fc-children-grid { display:grid; gap:14px; }

.fc-card-inner {
  border:1px dashed var(--fc-border);
  border-radius:var(--fc-radius);
  padding:14px;
  position:relative;
  overflow:hidden;
}

/* Make child card dashed border accent */
.fc-card-inner { border-color: var(--fc-accent) !important; }

.fc-legend {
  font-size:13px; 
  color:var(--fc-muted);
  margin-bottom:8px;
}

.fc-child-hidden { display:none; }

.fc-pill-btn {
  background: var(--fc-accent);
  color: white !important;
  border: none;
  padding: 9px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:600;
}
.fc-pill-btn:hover { filter:brightness(1.15); }

/* ==========================================================
   PASSWORD FIELD WITH EYE
   ========================================================== */
.fc-password-wrap {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:6px;
}

.fc-secret { flex:1; }

.fc-eye {
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--fc-border);
  border-radius:var(--fc-radius);
  cursor:pointer;
  opacity:0.75;
}
.fc-eye:hover { opacity:1; }

/* ==========================================================
   TABLE
   ========================================================== */
.fc-table-wrap {
  border:1px solid var(--fc-border);
  border-radius:var(--fc-radius);
  overflow:hidden;
}
.fc-table {
  width:100%;
  border-collapse:collapse;
}
.fc-table th, .fc-table td {
  padding:10px;
  border-bottom:1px solid var(--fc-border);
  font-size:13px;
}

/* ==========================================================
   SAVE BUTTON
   ========================================================== */
.fc-actions { display:flex; justify-content:flex-end; padding-top:12px; }
.fc-primary-btn {
  background: var(--fc-accent);
  color:var(--fc-accent-contrast);
  border:none;
  padding:10px 18px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
}
.fc-primary-btn:hover { filter:brightness(1.1); }

/* ==========================================================
   DISCLAIMER
   ========================================================== */
.fc-disclaimer {
  margin-top:16px;
  background: var(--fc-yellow);
  color:#4a3e00;
  border:1px solid #f3e8a2;
  border-radius: var(--fc-radius);
  padding:12px 14px;
  font-size:13px;
  line-height:1.4;
}
.fc-disclaimer a { color:#322900; text-decoration:underline; }

/* ==========================================================
   CHILD LOGIN PAGE
   ========================================================== */
.cl-wrap { display:flex; justify-content:center; padding-top:60px; }
.cl-card {
  background: var(--fc-card);
  border:1px solid var(--fc-border);
  padding:28px;
  border-radius:var(--fc-radius-lg);
  width:100%; max-width:420px;
  text-align:center;
  box-shadow:var(--fc-shadow);
}

.cl-card h2 { margin-bottom:6px; font-size:1.6rem; font-weight:700; }
.cl-card p { margin-bottom:14px; color:var(--fc-muted); }

.cl-form label { display:block; text-align:left; font-size:13px; margin-top:14px; }
.cl-form input[type="text"], .cl-form input[type="password"] {
  width:100%;
  border:1px solid var(--fc-border);
  background:transparent;
  border-radius:var(--fc-radius);
  padding:10px 12px;
  color:var(--fc-text);
}

.cl-secret-wrap { position:relative; }
.cl-secret { padding-right:42px; }

.cl-eye-inside {
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  cursor:pointer; opacity:0.7; font-size:18px;
}
.cl-eye-inside:hover { opacity:1; }

.cl-btn {
  margin-top:20px; width:100%;
  background:var(--fc-accent);
  border:none; color:var(--fc-accent-contrast);
  padding:12px; border-radius:var(--fc-radius);
  font-weight:600; cursor:pointer;
}
.cl-btn:hover { filter:brightness(1.1); }

.cl-error {
  margin-top:16px;
  background:#ffe5e5;
  padding:10px;
  border-radius:var(--fc-radius);
  color:#a40000;
}

/* ==========================================================
   CHILD NAME + USERNAME ROW + CODE BOX
   ========================================================== */
.fc-child-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.fc-col label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.fc-child-username-label {
  font-size: 13px;
  color: var(--fc-muted);
  margin-bottom: 4px;
}

.fc-child-code-box {
  display:flex;
  align-items:center;
  justify-content:center;
  height:44px;
  border-radius:var(--fc-radius);
  border:1px solid var(--fc-border);
  background:rgba(127,127,127,0.08);
  font-size:13px;
  font-weight:600;
}

/* ==========================================================
   TIMEZONE HEIGHT FIX (Final Fix)
   ========================================================== */
.fc-select,
.fc-input {
  height: 48px;
  padding: 8px 12px;
  font-size: 16px;
  line-height: 1.3;
  border-radius: 8px;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}



.fc-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.35s ease;
  z-index: 99999;
}
.fc-toast.show {
  opacity: 1;
  transform: translateY(0);
}




/* Add spacing above the "+ Add Child" button */
#fc-add-child.fc-pill-btn {
  margin-top: 17px !important;
  display: inline-block;
}



/* Force hint to appear on a new clean line */
.fc-hint-muted {
  display: block !important;
  color: var(--fc-muted);
  font-size: 12px;
  margin-top: 6px;
  margin-bottom: 8px; /* ✅ ensures space before Active */
  opacity: 0.75;
}

/* Ensure Active checkbox is not inline */
.fc-child-active {
  display: block;
  margin-top: 8px;
}





