/* ═══════════════════════════════════════════════════════════
   FAITH DAILY WORD — DASHBOARD STYLES
   Wife Dashboard + Sibling Dashboards
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

.fdw-wife-wrap,
.fdw-sib-wrap {
  font-family: 'Nunito', Arial, sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

/* ── WIFE DASHBOARD ────────────────────────────────────────── */
.fdw-wife-hero {
  text-align: center;
  padding: 48px 24px 32px;
  background: linear-gradient(135deg, #6D0E5B, #C2185B, #FF6090);
  border-radius: 20px;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.fdw-wife-hero::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.fdw-wife-icon { font-size: 64px; display: block; margin-bottom: 16px; }
.fdw-wife-hero h1 { font-family: 'Playfair Display', serif; font-size: 28px; margin: 0 0 8px; }
.fdw-wife-hero p  { color: rgba(255,255,255,.8); font-size: 14px; }

.fdw-wife-faith-banner {
  background: linear-gradient(135deg, #4A0040, #880E4F);
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
  margin-bottom: 24px;
  color: #fff;
}
.fdw-wife-faith-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.fdw-wife-faith-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
  color: #FFD6E7;
  margin-bottom: 10px;
}
.fdw-wife-faith-sub {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.fdw-wife-section {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  border: 1px solid #f0e0ea;
}
.fdw-wife-section h2 {
  font-family: 'Playfair Display', serif;
  color: #880E4F;
  font-size: 20px;
  margin: 0 0 8px;
}
.fdw-wife-section-desc { color: #888; font-size: 14px; margin-bottom: 20px; }

.fdw-wife-letter {
  border-left: 4px solid #E91E63;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: #FFF0F5;
  border-radius: 0 12px 12px 0;
}
.fdw-wife-letter-date  { font-size: 11px; color: #C2185B; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.fdw-wife-letter-body  { color: #333; font-size: 15px; line-height: 1.8; }

.fdw-wife-declarations ul { list-style: none; padding: 0; }
.fdw-wife-declarations li {
  padding: 12px 16px 12px 42px;
  position: relative;
  color: #880E4F;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px dashed rgba(200,0,100,.1);
}
.fdw-wife-declarations li::before { content: '💛'; position: absolute; left: 12px; top: 12px; }

.fdw-wife-verse, .fdw-wife-verse-block {
  text-align: center;
  padding: 28px;
  background: linear-gradient(135deg, #FFF0F5, #fff);
  border-radius: 16px;
  margin-bottom: 20px;
}
.fdw-wife-verse blockquote, .fdw-wife-verse-block blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 19px;
  color: #880E4F;
  line-height: 1.7;
  border: none;
  padding: 0;
  margin: 0 0 8px;
}
.fdw-wife-verse cite, .fdw-wife-verse-block cite { color: #aaa; font-size: 13px; }
.fdw-wife-note { text-align: center; color: #888; font-size: 14px; padding: 16px; font-style: italic; }
.fdw-wife-empty { color: #C2185B; font-style: italic; text-align: center; padding: 20px; }
.fdw-wife-footer { text-align: center; padding: 24px; color: #aaa; font-size: 13px; }

/* Login/setup forms */
.fdw-wife-login, .fdw-sib-auth { max-width: 440px; }
.fdw-wife-form, .fdw-sib-form {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  border: 1px solid #f0e8f8;
}
.fdw-wife-input, .fdw-sib-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #dde;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: border-color .2s;
}
.fdw-wife-input:focus, .fdw-sib-input:focus { outline: none; border-color: #C2185B; }
.fdw-wife-btn, .fdw-sib-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #C2185B, #FF6090);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .2s;
}
.fdw-wife-btn:hover, .fdw-sib-btn:hover { opacity: .9; }
.fdw-sib-btn-sm { padding: 10px 16px; font-size: 14px; width: auto; }

/* ── SIBLING LANDING ───────────────────────────────────────── */
.fdw-sib-hero {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #1a1a3e, #3a0ca3);
  border-radius: 20px;
  color: #fff;
  margin-bottom: 28px;
}
.fdw-sib-hero-icon { font-size: 56px; display: block; margin-bottom: 14px; }
.fdw-sib-hero h1 { font-size: 26px; margin: 0 0 8px; font-weight: 900; }
.fdw-sib-hero p  { color: rgba(255,255,255,.7); font-size: 14px; }

.fdw-sib-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.fdw-sib-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  border: 2px solid rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  display: block;
}
.fdw-sib-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.fdw-sib-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--sib-color);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.fdw-sib-card-name   { font-weight: 800; color: #1a1a3e; font-size: 16px; }
.fdw-sib-card-status { font-size: 12px; color: #888; margin-top: 4px; }

/* ── SIBLING DASHBOARD ─────────────────────────────────────── */
.fdw-sib-dash-header {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #1a1a3e, #3a0ca3);
  border-radius: 16px;
  padding: 20px 24px;
  color: #fff;
  margin-bottom: 20px;
}
.fdw-sib-avatar-lg {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fdw-sib-dash-header h1 { font-size: 20px; margin: 0 0 4px; }
.fdw-sib-dash-header p  { color: rgba(255,255,255,.7); font-size: 13px; margin: 0; }
.fdw-sib-logout {
  margin-left: auto;
  color: rgba(255,255,255,.6);
  font-size: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 12px;
  border-radius: 8px;
}

.fdw-sib-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.fdw-sib-stat {
  background: #fff;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid #eee;
}
.fdw-sib-stat-num { display: block; font-size: 22px; font-weight: 900; color: #3a0ca3; }
.fdw-sib-stat span:last-child { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: .5px; }

.fdw-sib-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.fdw-sib-tab {
  padding: 10px 18px;
  border: 2px solid #e0e0ef;
  background: #fff;
  border-radius: 99px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  position: relative;
}
.fdw-sib-tab.active { background: #3a0ca3; color: #fff; border-color: #3a0ca3; }
.fdw-sib-badge {
  background: #e53935;
  color: #fff;
  border-radius: 99px;
  font-size: 10px;
  padding: 2px 6px;
  margin-left: 4px;
}

.fdw-sib-tab-content { display: none; }
.fdw-sib-tab-content.active { display: block; }

.fdw-sib-message-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #eee;
}
.fdw-sib-message-card.fdw-unread { border-left: 4px solid #3a0ca3; background: #f8f5ff; }
.fdw-sib-msg-date    { font-size: 11px; color: #999; margin-bottom: 8px; }
.fdw-sib-msg-subject { font-weight: 800; color: #1a1a3e; font-size: 15px; cursor: pointer; }
.fdw-sib-msg-body    { padding-top: 14px; font-size: 14px; line-height: 1.8; color: #333; }

.fdw-sib-tracker-form { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid #eee; }
.fdw-sib-check-label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #1a1a3e; margin-bottom: 12px; cursor: pointer; }
.fdw-sib-check-label input { width: 18px; height: 18px; cursor: pointer; }
.fdw-sib-input-sm { margin-top: 4px; }

.fdw-sib-tracker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.fdw-sib-tracker-day {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  font-size: 12px;
}
.fdw-sib-tracker-day.done { background: #f0fff4; border: 1px solid #a5d6a7; }
.fdw-sib-tracker-day-label { display: block; font-weight: 800; color: #555; font-size: 11px; margin-bottom: 4px; }
.fdw-sib-tracker-day-icon  { display: block; font-size: 18px; }
.fdw-sib-tracker-icons     { display: block; font-size: 11px; margin-top: 3px; }

.fdw-sib-prayer-form { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid #eee; }
.fdw-sib-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #dde;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 10px;
  box-sizing: border-box;
  resize: vertical;
}
.fdw-sib-prayer-card {
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
}
.fdw-prayer-believing { background: #f0f4ff; border-left: 4px solid #3a0ca3; }
.fdw-prayer-answered  { background: #f0fff4; border-left: 4px solid #27ae60; }
.fdw-sib-prayer-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.fdw-sib-btn-text { background: none; border: none; color: #27ae60; font-weight: 700; cursor: pointer; font-family: inherit; font-size: 13px; }
.fdw-sib-back { text-align: center; margin-top: 16px; }
.fdw-sib-back a { color: #888; font-size: 14px; }
.fdw-sib-empty { text-align: center; color: #aaa; font-style: italic; padding: 24px; }

/* ── ADMIN: sibling accounts grid ──────────────────────────── */
.fdw-sib-accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.fdw-sib-account-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border: 1px solid #eee;
}
.fdw-sib-acc-header {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.fdw-sib-acc-initial {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
  flex-shrink: 0;
}
.fdw-sib-acc-name  { font-weight: 800; font-size: 16px; }
.fdw-sib-acc-email { font-size: 12px; opacity: .8; }
.fdw-sib-acc-body  { padding: 16px; }
.fdw-sib-acc-stats { font-size: 12px; color: #666; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.fdw-sib-acc-status { font-size: 13px; font-weight: 700; color: #555; margin-bottom: 8px; }

@media (max-width: 600px) {
  .fdw-sib-stats { grid-template-columns: repeat(2, 1fr); }
  .fdw-sib-tracker-grid { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .fdw-sib-tab { font-size: 13px; padding: 8px 12px; }
  .fdw-wife-count-num { font-size: 56px; }
}

/* ── Bilingual note ─────────────────────────────────────────── */
.fdw-sib-lang-note {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  margin-top: 8px;
  letter-spacing: .3px;
}

/* ══════════════════════════════════════════════════════════
   PROFILE TAB — Photo, Bio, Birthday, Color, Password
══════════════════════════════════════════════════════════ */

/* Avatar: show photo if uploaded */
.fdw-sib-avatar img,
.fdw-sib-avatar-lg img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.fdw-sib-avatar-lg--photo { background: transparent; padding: 0; }
.fdw-sib-avatar-lg--init  { background: rgba(255,255,255,.2); }

/* Landing card avatar: show photo */
.fdw-sib-card .fdw-sib-avatar img {
  width: 60px; height: 60px; border-radius: 50%;
}

/* Admin account card avatar */
.fdw-sib-acc-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: #fff;
  flex-shrink: 0; overflow: hidden;
}
.fdw-sib-acc-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Photo upload section in profile */
.fdw-sib-photo-section {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8f5ff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #e8dff8;
}
.fdw-sib-photo-preview {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: #3a0ca3;
  color: #fff;
  font-size: 32px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(58,12,163,.25);
}
.fdw-sib-photo-preview.fdw-sib-has-photo { background: transparent; }
.fdw-sib-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fdw-sib-photo-actions { flex: 1; }
.fdw-sib-photo-upload-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #3a0ca3;
  color: #fff;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .2s;
}
.fdw-sib-photo-upload-btn:hover { opacity: .85; }
.fdw-sib-photo-actions small { display: block; margin-top: 8px; color: #aaa; font-size: 12px; }

/* Profile fields */
.fdw-sib-profile-form { background: #fff; border-radius: 14px; padding: 20px; border: 1px solid #eee; margin-bottom: 20px; }
.fdw-sib-profile-form label { display: block; font-weight: 700; font-size: 14px; color: #333; margin: 16px 0 6px; }
.fdw-sib-profile-form label:first-child { margin-top: 0; }
.fdw-sib-hint { font-size: 12px; color: #aaa; margin: 4px 0 0; }

/* Password change section */
.fdw-sib-change-pass-section { margin-top: 20px; }
.fdw-sib-change-pass-section h3 { font-size: 16px; color: #1a1a3e; margin-bottom: 14px; }
.fdw-sib-btn-outline {
  background: transparent !important;
  border: 2px solid #3a0ca3 !important;
  color: #3a0ca3 !important;
}
.fdw-sib-btn-outline:hover { background: #f0edff !important; }

/* Color swatches */
.fdw-sib-color-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.fdw-sib-color-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform .15s, border-color .15s;
  display: block;
}
.fdw-sib-color-swatch.selected,
.fdw-sib-color-swatch:hover {
  transform: scale(1.2);
  border-color: #1a1a3e;
}

/* Birthday banner */
.fdw-sib-birthday-banner {
  background: linear-gradient(135deg, #FF6B9D, #FF8E53);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
  animation: fdw-pulse 2s infinite;
}
@keyframes fdw-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.02); }
}

/* Streak pill */
.fdw-sib-streak-pill {
  display: inline-block;
  margin-top: 16px;
  background: linear-gradient(135deg, #FF6B9D22, #FF8E5322);
  border: 1px solid #FF6B9D55;
  color: #c0392b;
  border-radius: 99px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
}

/* 14-day tracker grid */
.fdw-sib-tracker-grid-14 { grid-template-columns: repeat(7, 1fr); }

/* Profile bio preview in header */
.fdw-sib-bio-preview { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; font-style: italic; }

/* Dash header dynamic color */
.fdw-sib-dash-header { background: linear-gradient(135deg, var(--sib-color, #3a0ca3), #1a1a3e); }

/* Forgot password toggle */
.fdw-sib-forgot-wrap { margin-top: 16px; }
.fdw-sib-forgot-toggle { cursor: pointer; }
.fdw-sib-forgot-toggle summary {
  font-size: 13px; color: #888; cursor: pointer;
  text-align: center; padding: 8px;
  list-style: none;
}
.fdw-sib-forgot-toggle summary::-webkit-details-marker { display: none; }

/* Error box */
.fdw-sib-error {
  background: #fff5f5; border: 1px solid #ffcdd2; color: #b71c1c;
  padding: 16px 20px; border-radius: 10px; font-weight: 600;
  margin: 20px 0;
}

/* Reply section */
.fdw-sib-reply-wrap { background: #fff; border-radius: 14px; padding: 20px; border: 1px solid #eee; }
.fdw-sib-reply-wrap h3 { margin: 0 0 8px; font-size: 16px; color: #1a1a3e; }
.fdw-sib-reply-wrap p  { color: #888; font-size: 14px; margin-bottom: 14px; }
