/* =====================================================================
   Custom classes that supplement Tailwind CDN.
   Tailwind handles layout/spacing/colors; this file handles:
   - Font import
   - Form controls (consistent focus rings)
   - Week plan badge colors (used in _weeks.html + kept for PDFs)
   - Gmail connect button
   - File input custom styling
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; }

/* ---- form inputs ---- */
.fi {
  display: block; width: 100%; height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; color: #1e293b; background: #fff;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.fi:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.fi::placeholder { color: #94a3b8; }

.ft {
  display: block; width: 100%;
  padding: 10px 12px; min-height: 82px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; color: #1e293b; background: #fff;
  font-family: inherit; resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.ft:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.ft::placeholder { color: #94a3b8; }

.fs {
  display: block; width: 100%; height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; color: #1e293b; background: #fff;
  font-family: inherit; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color .15s;
}
.fs:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

.ff {
  display: block; width: 100%;
  font-size: 13px; color: #475569; font-family: inherit;
}
.ff::file-selector-button {
  margin-right: 10px; padding: 5px 14px;
  border: 1px solid #e2e8f0; border-radius: 6px;
  font-size: 13px; font-family: inherit;
  background: #f8fafc; color: #475569; cursor: pointer;
  transition: background .15s;
}
.ff::file-selector-button:hover { background: #f1f5f9; }

/* ---- form label ---- */
.fl { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.fl .opt { font-weight: 400; color: #94a3b8; font-size: 12px; }
.fl .req { color: #ef4444; }
.fhint { font-size: 12px; color: #94a3b8; margin-top: 4px; line-height: 1.5; }
.fhint a { color: #2563eb; }

/* ---- buttons ---- */
.btn-p {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; background: #2563eb; color: #fff;
  border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .1s;
}
.btn-p:hover { background: #1d4ed8; color: #fff; text-decoration: none; }
.btn-p:active { transform: translateY(1px); }

.btn-g {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; background: #fff; color: #374151;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; font-weight: 500; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-g:hover { background: #f8fafc; border-color: #cbd5e1; color: #374151; text-decoration: none; }

.btn-d {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; background: #dc2626; color: #fff;
  border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.btn-d:hover { background: #b91c1c; color: #fff; text-decoration: none; }

.btn-sm { padding: 5px 12px !important; font-size: 12px !important; border-radius: 6px !important; }

/* ---- week plan badges (web + PDF compatibility) ---- */
.wbadge {
  display: inline-block; padding: 2px 8px;
  border-radius: 5px; font-size: 11px; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.wbadge-compliance   { background: #475569; }
.wbadge-clarification { background: #2563eb; }
.wbadge-culture      { background: #7c3aed; }
.wbadge-connection   { background: #0d9488; }

/* ---- gmail connect button ---- */
.btn-gmail {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; background: #fff; color: #374151;
  border: 1px solid #dadce0; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit;
  transition: box-shadow .15s, border-color .15s;
}
.btn-gmail:hover { box-shadow: 0 2px 10px rgba(0,0,0,.12); border-color: #c0c8d4; color: #374151; text-decoration: none; }

/* ---- gmail connected state ---- */
.gmail-connected {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #ecfdf5; border: 1px solid #a7f3d0;
  border-radius: 10px; font-size: 14px; color: #065f46;
}

/* ---- status chips ---- */
.chip-ok     { display:inline-block; padding:2px 9px; border-radius:20px; font-size:11px; font-weight:700; background:#dcfce7; color:#166534; }
.chip-todo   { display:inline-block; padding:2px 9px; border-radius:20px; font-size:11px; font-weight:700; background:#fee2e2; color:#991b1b; }
.chip-ai     { display:inline-block; padding:2px 9px; border-radius:20px; font-size:11px; font-weight:600; background:#eff6ff; color:#1d4ed8; }
.chip-offline{ display:inline-block; padding:2px 9px; border-radius:20px; font-size:11px; font-weight:600; background:#f1f5f9; color:#475569; }
