/* Group 2-11
 
Style sheet based on Ella Rises branding.

*/

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


@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');


/* -----------------------------
   COLOR PALETTE VARIABLES
   ----------------------------- */
:root {
  --blue: #99B7C6;
  --lavender: #978EC4;
  --cream: #F9F5EA;
  --peach-light: #FFD8D8; /* was #FFD8D1 */
  --pink: #F9AFB0; /* was #F9AFB1 */
  --sage: #9AB59D;
  --charcoal: #3A3F3B;
  --coral: #F4B092;
  --raspberry: #CE325B;

  --text-dark: #3A3F3B;
  --text-light: #ffffff;

  --radius-square: 8px;
  --shadow-card: 0 8px 20px rgba(0,0,0,0.08);
}


/* -----------------------------
   GLOBAL STYLES
   ----------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 10% 20%, #ffe7df 0%, #f9f5ea 45%, #f2f8fa 100%);
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  padding-bottom: 50px;
}

/* Page wrapper */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.page-wrapper--wide {
  max-width: 1400px;
  width: calc(100% - 32px);
}

.dashboard-card {
  width: 100%;
  max-width: none;
}

.dashboard-viz {
  position: relative;
  width: 100%;
  min-height: 640px;
  height: calc(100vh - 220px);
  max-height: 1100px;
  margin-top: 16px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--cream);
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.mt-3 { margin-top: 12px; }
.mt-5 { margin-top: 32px; }

/* -----------------------------
   TYPOGRAPHY
   ----------------------------- */
h1, h2, h3, .title {
  font-family: 'DM Serif Display', serif !important;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.script-accent {
  font-family: 'Pacifico', cursive;
  font-size: 1.4rem;
}


/* -----------------------------
   NAV / HEADER
   ----------------------------- */
.site-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 12px 18px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions a {
  text-decoration: none;
  color: var(--charcoal);
  padding: 10px 14px;
  border-radius: var(--radius-square);
  border: 1px solid rgba(0,0,0,0.05);
  background: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-card);
  transition: all 0.15s ease;
  display: inline-block;
}

.header-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.header-actions .nav-accent {
  background: var(--raspberry);
  color: white !important;
  border-color: transparent;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--charcoal);
  text-decoration: none;
}

.site-logo {
  height: 54px;
  width: auto;
  display: block;
}

.menu-toggle {
  width: 48px;
  height: 48px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.menu-toggle__bar {
  width: 100%;
  height: 3px;
  background: var(--charcoal);
  border-radius: 999px;
}

.site-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 950;
}

.site-sidebar-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  max-width: 85vw;
  background: #ffffff;
  box-shadow: 8px 0 28px rgba(0,0,0,0.14);
  transform: translateX(-105%);
  transition: transform 0.35s ease;
  z-index: 960;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px 28px;
}

.site-sidebar.is-open {
  transform: translateX(0);
}

.site-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-label {
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--charcoal);
}

.menu-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  color: var(--charcoal);
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.site-nav a {
  text-decoration: none;
  color: var(--charcoal);
  padding: 12px 14px;
  border-radius: var(--radius-square);
  border: 1px solid rgba(0,0,0,0.05);
  background: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-card);
  transition: all 0.15s ease;
  display: block;
}

.site-nav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.nav-accent,
.site-nav a.nav-accent {
  background: var(--raspberry);
  color: white !important;
  border-color: transparent;
}

.user-chip {
  padding: 8px 12px;
  border-radius: var(--radius-square);
  background: var(--peach-light);
  border: 1px solid rgba(0,0,0,0.04);
  font-weight: 600;
  display: inline-block;
}

.hero-logo {
  display: block;
  max-width: 200px;
  width: 100%;
  margin: 0 auto;
}




/* -----------------------------
   FORMS (Login, Register, Edit/Add Pages)
   ----------------------------- */
.form-card {
  background: var(--cream);
  padding: 30px 28px;
  border-radius: 22px;
  max-width: 480px;
  margin: 60px auto;
  box-shadow: var(--shadow-card);
}

.form-card h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-row label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--blue);
  font-size: 1rem;
  background: #ffffff;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

textarea {
  resize: vertical;
}



/* -----------------------------
   BUTTONS
   ----------------------------- */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-square);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  filter: brightness(0.92);
}

/* Primary coral button */
.btn-primary {
  background: var(--coral);
  color: white;
}

.btn-primary:hover {
  background: var(--raspberry);
  text-decoration: none;
}

/* Treat add/save/success as primary tone */
.btn-add,
.btn-save,
.btn-success {
  background: var(--coral);
  color: white;
}

.btn-add:hover,
.btn-save:hover,
.btn-success:hover {
  background: var(--raspberry);
}

/* Secondary light button */
.btn-secondary {
  background: var(--blue);
  color: white;
}

.btn-secondary:hover {
  background: var(--lavender);
  text-decoration: none;
}

/* Treat edit/cancel as secondary tone */
.btn-edit,
.btn-cancel {
  background: var(--blue);
  color: white;
}

.btn-edit:hover,
.btn-cancel:hover {
  background: var(--lavender);
  text-decoration: none;
}

/* Delete / danger button */
.btn-danger {
  background: var(--raspberry);
  color: white;
}

.btn-add {
  background: var(--sage);
  color: white;
}

.btn-edit {
  background: var(--blue);
  color: white;
}

.btn-delete {
  background: var(--raspberry);
  color: white;
}

.add-button-bar {
  display: inline-block;
  margin-bottom: 16px;
}



/* -----------------------------
   ERROR MESSAGE
   ----------------------------- */
.error-message {
  background: var(--pink);
  padding: 10px;
  border-radius: 10px;
  color: var(--raspberry);
  margin-bottom: 15px;
  text-align: center;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}
.alert-danger { background: #ffe6e9; color: #a91e3c; }
.alert-warning { background: #fff5d9; color: #8a6d00; }
.alert-info { background: #e8f4ff; color: #0b4f8d; }



/* -----------------------------
   TABLES (Events, Surveys)
   ----------------------------- */
.table-card {
  background: var(--cream);
  max-width: 1100px;
  margin: 40px auto;
  padding: 24px 24px 30px;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.table-card h1 {
  margin-bottom: 12px;
}

.event-table,
.table {
  width: 100%;
  border-collapse: collapse;
}

.event-table th,
.table th {
  text-align: left;
  font-weight: 700;
  padding: 12px 10px;
  border-bottom: 2px solid var(--blue);
  background: rgba(153,183,198,0.12);
}

.event-table td,
.table td {
  padding: 10px 10px;
  border-bottom: 1px solid #e4e4e4;
}

.event-table tr:last-child td,
.table tr:last-child td {
  border-bottom: none;
}

.table-striped tr:nth-child(odd) td {
  background: rgba(0,0,0,0.02);
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.actions form {
  margin: 0;
}

.event-table td.actions,
.table td.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e4e4e4;
  padding: 10px 10px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.table-subtitle {
  color: #5c615e;
  font-size: 0.95rem;
  margin-top: 4px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-link {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}

.page-link:hover {
  background: var(--lavender);
}

.page-link.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.page-info {
  font-weight: 700;
}

.pagination-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.table-footer .footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.calendar-card {
  margin-top: 26px;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.calendar-month {
  font-weight: 800;
  font-size: 1.4rem;
  text-align: center;
  flex: 1;
}

.cal-nav {
  border: none;
  background: var(--blue);
  color: white;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cal-nav:hover {
  background: var(--lavender);
  transform: translateY(-1px);
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}


.calendar-weekdays {
  font-weight: 700;
  color: #4c4f4d;
  margin-bottom: 4px;
}

.calendar-weekdays div {
  text-align: center;
}

.calendar-day {
  min-height: 90px;
  background: rgba(153,183,198,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.calendar-day--empty {
  background: transparent;
  border: none;
}

.calendar-day.admin-clickable {
  cursor: pointer;
}

.calendar-day.admin-clickable:hover {
  background: rgba(153,183,198,0.2);
  border-color: rgba(0,0,0,0.12);
}

.calendar-day-number {
  font-weight: 700;
  color: var(--charcoal);
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-event {
  display: inline-block;
  background: #fdf3ea;
  color: #111;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 0.82rem;
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-event:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.task-card-row {
  position: relative;
  overflow: hidden;
}

.task-card-row .task-actions {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.task-actions .btn {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.task-actions .btn-attended {
  background: #c7e9ff;
  color: #0b3d91;
}

.task-actions .btn-no-show {
  background: #ffd6d6;
  color: #7a1b1b;
}

.task-action-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  transition: transform 0.2s ease;
}

.task-card-row.reveal .task-action-strip {
  transform: translateX(-130px);
}

.task-card-row.reveal .task-actions {
  opacity: 1;
  pointer-events: auto;
}

.event-type-stem { background: #c7e9ff; color: #0b3d91; }
.event-type-arts { background: #ffe0f1; color: #7d1b4f; }
.event-type-leadership { background: #e8f3d8; color: #2e5a1c; }
.event-type-annual-conference { background: #fff3c2; color: #5c3a00; }
.event-type-default { background: #f1f1f1; color: #111; }

.calendar-empty {
  margin-top: 10px;
  color: #6d6d6d;
  font-weight: 600;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-visible {
  opacity: 1;
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 14px 36px rgba(0,0,0,0.18);
  position: relative;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.modal-overlay.is-visible .modal-card {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-meta {
  color: #4c4f4d;
  margin: 4px 0;
}

.modal-body {
  margin-top: 10px;
  line-height: 1.5;
}

.modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.hidden {
  display: none;
}

.sidebar-open {
  overflow: hidden;
}

.table-actions {
  margin-bottom: 16px;
}



/* -----------------------------
   HERO CIRCLES (if you use them later)
   ----------------------------- */
.hero-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* -----------------------------
   Choices.js select overrides
   ----------------------------- */
.choices {
  font-size: 1rem !important;
  font-family: 'Montserrat', sans-serif !important;
}

.choices__inner {
  min-height: 44px !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  border: 1px solid var(--blue) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.choices__list--single .choices__item {
  padding: 4px 0 !important;
  color: var(--text-dark) !important;
  font-family: 'Montserrat', sans-serif !important;
}

.choices__input {
  padding: 6px 8px !important;
  margin: 4px 0 !important;
  border-radius: 8px !important;
  border: 1px solid var(--blue) !important;
  font-family: 'Montserrat', sans-serif !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  border: 1px solid var(--blue) !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow-card) !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

.choices__list--dropdown .choices__item--selectable {
  padding: 10px 12px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f0f0f0 !important;
  font-family: 'Montserrat', sans-serif !important;
}

.choices__list--dropdown .choices__item--selectable:last-child {
  border-bottom: none !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: rgba(153,183,198,0.15) !important;
  color: var(--text-dark) !important;
  font-family: 'Montserrat', sans-serif !important;
}

.choices__placeholder {
  opacity: 0.9 !important;
  color: var(--charcoal) !important;
  font-family: 'Montserrat', sans-serif !important;
}

.hero-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: var(--shadow-card);
}

.hero-circle:hover {
    transform: translateY(-2px);
}

.hero-circle.is-active {
    transform: scale(1.2);
    box-shadow: 0 22px 48px rgba(0,0,0,0.2);
}

/* Landing page extras */
.landing-title {
  text-align: center;
  margin-top: 32px;
  animation: fadeIn 0.6s ease forwards;
}

.hero-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}

.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.mission-card {
  max-width: 800px;
  margin: 36px auto 30px;
  padding: 16px 20px;
  text-align: center;
  line-height: 1.6;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.donation-simple {
  text-align: center;
  margin: 8px 0 16px;
}

.donation-simple__text {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.donation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.donation-center {
  text-align: center;
}

.donation-center .form-row {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 420px;
}

.donation-center .buttons {
  justify-content: center;
}

.card-compact-shell {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 16px;
}

.card-compact {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  margin: 0 auto;
  max-width: 780px;
}

.card-compact__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.card-compact__eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #6b6f6c;
  margin-bottom: 4px;
}

.card-compact__sub {
  color: #555;
  font-size: 0.95rem;
  margin-top: 4px;
}

.card-compact__meta .pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(153, 183, 198, 0.2);
  border: 1px solid rgba(0,0,0,0.05);
  font-weight: 600;
}

.card-compact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
}

.card-compact__item .label {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 3px;
}

.simple-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1200;
}

.simple-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.simple-dialog {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 24px 20px;
  width: min(480px, 90vw);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  animation: fadeUp 0.25s ease;
}

.simple-dialog h3 {
  margin-bottom: 10px;
}

.simple-dialog p {
  margin-bottom: 16px;
  line-height: 1.5;
}

.simple-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.fade-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s ease forwards;
}

.btn-lift {
  padding: 14px 24px;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.btn-pulse {
  animation: btnPulse 0.5s ease;
}

@keyframes btnPulse {
  0% { transform: scale(1); box-shadow: 0 8px 18px rgba(0,0,0,0.14); }
  50% { transform: scale(1.05); box-shadow: 0 14px 30px rgba(0,0,0,0.18); }
  100% { transform: scale(1); box-shadow: 0 8px 18px rgba(0,0,0,0.14); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
