/*
 * Instructor portal styles. Self-contained (own variables with CryoPro ice
 * defaults) so the dashboard looks right on ANY theme — Respira or CryoPro.
 */
.rip-portal {
  --rip-ink: #0d2236;
  --rip-ink-soft: #3c5a72;
  --rip-teal: #12808f;
  --rip-teal-bright: #16a2b4;
  --rip-teal-dark: #0d5f6b;
  --rip-wash: #e6f2f4;
  --rip-soft: #f4f8f9;
  --rip-line: #d5e8ec;
  --rip-radius: 14px;
  background: var(--rip-soft);
  padding: 40px 0 70px;
  font-size: 16px;
  color: var(--rip-ink-soft);
}
.rip-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

.rip-head h1 { color: var(--rip-ink); margin: 0 0 6px; }
.rip-head p { margin: 0 0 24px; }

.rip-card {
  background: #fff; border: 1px solid var(--rip-line); border-radius: var(--rip-radius);
  padding: 26px 26px 30px; margin: 0 0 26px; box-shadow: 0 6px 24px rgba(13, 34, 54, .06);
}
.rip-card--center { text-align: center; max-width: 560px; margin: 60px auto; }
.rip-card--center h1 { font-size: 1.7rem; line-height: 1.2; margin: 0 0 10px; color: var(--rip-ink); }
.rip-card h2 { color: var(--rip-ink); margin: 0 0 14px; }
.rip-card h3 { color: var(--rip-ink); margin: 22px 0 10px; }

.rip-notice { border-radius: 12px; padding: 14px 18px; margin: 0 0 22px; }
.rip-notice--ok { background: #e8f6ee; border: 1px solid #bce3cc; color: #1c5e3a; }
.rip-notice--err { background: #fdeeee; border: 1px solid #f2c7c7; color: #8c2f2f; }

.rip-field { margin: 0 0 16px; }
.rip-field label { display: block; font-weight: 600; color: var(--rip-ink); margin: 0 0 5px; font-size: .95rem; }
.rip-field input[type="text"],
.rip-field input[type="url"],
.rip-field input[type="email"],
.rip-field input[type="number"],
.rip-field input[type="date"],
.rip-field input[type="time"],
.rip-field textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--rip-line);
  border-radius: 10px; font: inherit; color: var(--rip-ink); background: #fff;
}
.rip-field input:focus, .rip-field textarea:focus {
  outline: 2px solid var(--rip-teal); outline-offset: 1px; border-color: var(--rip-teal);
}
.rip-field input[type="file"] { font: inherit; font-size: .9rem; }
.rip-field .rip-check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--rip-ink); cursor: pointer; }
.rip-field .rip-check input { width: 18px; height: 18px; accent-color: var(--rip-teal); }
.rip-field small { display: block; margin-top: 4px; color: var(--rip-ink-soft); opacity: .8; font-size: .82rem; }

/* Registration / login forms inside a centered card: left-align and style the
   bare label+input pairs (they are not wrapped in .rip-field). */
.rip-form { text-align: left; margin-top: 8px; }
.rip-form label { display: block; font-weight: 600; color: var(--rip-ink); margin: 16px 0 5px; font-size: .95rem; }
.rip-form input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--rip-line);
  border-radius: 10px; font: inherit; color: var(--rip-ink); background: #fff;
}
.rip-form input:focus { outline: 2px solid var(--rip-teal); outline-offset: 1px; border-color: var(--rip-teal); }
.rip-form .rip-btn { display: block; width: 100%; margin-top: 22px; }

.rip-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
@media (max-width: 640px) { .rip-grid-2 { grid-template-columns: 1fr; } }

.rip-btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  background: linear-gradient(120deg, var(--rip-teal-bright), var(--rip-teal-dark)); color: #fff;
  padding: 12px 26px; border-radius: 999px; margin-top: 6px;
  box-shadow: 0 10px 30px rgba(18, 128, 143, .35); text-decoration: none;
}
.rip-btn:hover { filter: brightness(1.06); color: #fff; }
.rip-btn--small { padding: 7px 16px; font-size: .85rem; box-shadow: none; margin: 0; }

.rip-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.rip-table th { text-align: left; color: var(--rip-ink); border-bottom: 2px solid var(--rip-line); padding: 8px 10px; }
.rip-table td { border-bottom: 1px solid var(--rip-line); padding: 10px; vertical-align: top; }

.rip-badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  white-space: nowrap;
}
.rip-badge--ok { background: #e8f6ee; color: #1c5e3a; }
.rip-badge--pending { background: var(--rip-wash); color: var(--rip-teal-dark); }
.rip-badge--warn { background: #fdf3e4; color: #8a5a17; }

.rip-muted { color: var(--rip-ink-soft); opacity: .85; font-size: .92rem; }
.rip-inline-status { margin-top: 10px; }
.rip-foot { text-align: center; margin-top: 10px; font-size: .88rem; opacity: .75; }

/* Dashboard tabs: Mis eventos (recurring) / Mi perfil (set up once) */
.rip-tabs { display: flex; gap: 8px; margin: 0 0 24px; border-bottom: 2px solid var(--rip-line); }
.rip-tab {
  padding: 11px 24px; border-radius: 12px 12px 0 0; font-weight: 700; font-size: 1rem;
  color: var(--rip-ink-soft); text-decoration: none; border: 1px solid transparent;
  border-bottom: none; margin-bottom: -2px; background: transparent;
}
.rip-tab:hover { color: var(--rip-teal-dark); }
.rip-tab.is-active { background: #fff; color: var(--rip-teal-dark); border-color: var(--rip-line); box-shadow: 0 -4px 12px rgba(0,0,0,.04); }
.rip-tabpane { display: none; }
.rip-tabpane.is-active { display: block; }

/* Event row quick actions: hide / republish / delete */
.rip-ev-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rip-ev-actions form { display: inline-flex; gap: 6px; margin: 0; }
.rip-btn--ghost { background: #fff; color: var(--rip-teal-dark); border: 1px solid var(--rip-line); box-shadow: none; }
.rip-btn--ghost:hover { filter: none; color: var(--rip-teal-dark); border-color: var(--rip-teal); }
.rip-btn--danger { background: #fdeeee; color: #8c2f2f; border: 1px solid #f2c7c7; box-shadow: none; }
.rip-btn--danger:hover { filter: none; color: #8c2f2f; background: #fbdede; }
