/*
File: public/css/style.css
Authors: Augusto Freire. George Martinez, Jyles Woodward, Tyler Mitton
Section 1, Group 4
Ella Rises INTEX, Fall 2025
Description: Design and colors that make the website look nice on all screen sizes.
*/

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

/* Ella Rises Brand Palette */
:root {
  --blue: #99B7C6;
  --lavender: #97BCE4;
  --cream: #F9F5EA;
  --pink: #FFD8D1;
  --rose: #F9AFB1;
  --green: #9AB59D;
  --dark: #3A3F3B;
  --salmon: #F4B092;
  --red: #CE325B;
  --primary: var(--red);
  --secondary: var(--green);
  --bg: var(--cream);
  --text: var(--dark);
  --muted: #6e736e;
  --white: #ffffff;
}

/* Base */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Layout Containers */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.page {
  width: min(1100px, 92%);
  margin: 40px auto;
  text-align: center;
}

.page h1 {
  margin-bottom: 8px;
}

.page>p.muted {
  max-width: 700px;
  margin: 0 auto 32px;
}

.page h2 {
  margin-top: 48px;
  text-align: center;
}

.page form,
.page table {
  text-align: left;
}

/* Headings */
h1,
h2,
h3 {
  font-family: "DM Serif Display", serif;
  margin: 0 0 16px;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 22px;
}

p {
  line-height: 1.6;
  color: var(--muted);
}

/* ===========================
   NAVBAR - PROFESSIONAL STYLE
   =========================== */

.navbar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  margin-right: 8px;
}

.nav-brand img {
  height: 54px !important;
  width: auto !important;
  max-height: 54px !important;
}

/* Left nav items */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
}

.nav-link {
  text-decoration: none !important;
  color: var(--text) !important;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  background: rgba(153, 183, 198, 0.16);
}

/* Right-side cluster (user + actions) */
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 999px;
}

/* User info chip on the right */
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 12px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.nav-user-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-user-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Dashboard pill on the right */
.nav-dashboard-wrapper {
  position: relative;
  display: inline-block;
}

.nav-link-dashboard {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(153, 183, 198, 0.08);
  border: 1px solid rgba(153, 183, 198, 0.4);
  display: flex;
  align-items: center;
}

.nav-link-dashboard:hover {
  background: rgba(153, 183, 198, 0.16);
}

/* Dashboard Dropdown */
.dashboard-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.nav-dashboard-wrapper:hover .dashboard-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dashboard-wrapper.open .dashboard-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dashboard-dropdown-inner {
  padding: 8px;
}

.dashboard-dropdown-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-dropdown-label {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.dashboard-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
}

.dashboard-dropdown-item:hover {
  background: rgba(153, 183, 198, 0.1);
  color: var(--primary);
}

.dashboard-dropdown-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.dashboard-dropdown-item:hover svg {

  .dashboard-dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 6px 0;
  }

  .dashboard-dropdown-item-home {
    font-weight: 600;
    color: var(--primary);
  }

  .dashboard-dropdown-item-home svg {
    opacity: 1;
  }

  opacity: 1;
}


/* Buttons */
.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.2s ease, background 0.2s ease;
  font-size: 16px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary) !important;
  color: var(--white) !important;
  border: none !important;
}

/* Global table styles (applies site-wide) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 15px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}

table thead th {
  text-align: left;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent);
  font-weight: 700;
  color: var(--text);
}

table tbody td {
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  vertical-align: middle;
}

table tbody tr:nth-child(even) {
  background: #fbfbfb;
}

table tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Responsive: make tables scroll horizontally on small screens */
.table-wrapper {
  overflow-x: auto;
}


.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
}

.btn-outline:hover {
  background: rgba(206, 50, 91, 0.08) !important;
}

/* ===========================
   DASHBOARD GREETINGS
   =========================== */

.dashboard-greeting {
  margin: 6px 0 10px;
  font-size: 20px;
  font-weight: 500;
  color: var(--muted);
}

.dashboard-greeting span {
  font-weight: 700;
  color: var(--primary);
}

/* LARGE participant greeting */
.dashboard-greeting--large {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--dark);
}

@media (max-width: 680px) {
  .dashboard-greeting--large {
    font-size: 28px;
  }
}

/* Admin name under "Admin Dashboard" */
.dashboard-admin-name {
  margin: 2px 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.dashboard-admin-name span {
  font-weight: 600;
  color: var(--primary);
}

/* Sections */
.section {
  padding: 64px 0;
}

.muted {
  color: var(--muted);
}

/* Brand helpers */
.bg-cream {
  background: var(--cream) !important;
}

.bg-pink {
  background: var(--pink) !important;
}

.bg-rose {
  background: var(--rose) !important;
}

.bg-salmon {
  background: var(--salmon) !important;
}

.bg-green {
  background: var(--green) !important;
}

.bg-blue {
  background: var(--blue) !important;
}

.bg-lavender {
  background: var(--lavender) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

/* Cards & Grid */
.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-1 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* Admin Pro Section */
.admin-section {
  margin-top: 48px;
  text-align: left;
}

.admin-subtext {
  margin-top: -10px;
  margin-bottom: 20px;
}

.admin-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.admin-pro-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.93),
      rgba(249, 245, 234, 0.85));
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  text-decoration: none !important;
  color: var(--text);
  transition: 0.2s;
}

.admin-pro-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.admin-pro-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(206, 50, 91, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-pro-icon svg {
  width: 28px;
  height: 28px;
}

.admin-pro-card h3 {
  font-size: 19px;
  margin: 0 0 4px;
  font-family: "DM Serif Display", serif;
}

.admin-pro-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Forms */
form {
  background: var(--white);
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  max-width: 540px;
  margin: 0 auto 32px;
}

label {
  font-weight: 600;
  display: block;
  margin: 6px 0;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--rose);
  border-color: var(--rose);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

thead th {
  background: var(--secondary);
  color: var(--white);
  text-align: left;
  font-weight: 600;
}

table th,
table td {
  padding: 14px;
  border-bottom: 1px solid #f0f0f0;
}

tbody tr {
  transition: background-color 0.15s ease;
}

tbody tr:nth-child(even) {
  background: #fafbf9;
}

tbody tr:hover {
  background: #f3f5f2;
}

tbody tr:nth-child(even):hover {
  background: #eff1ed;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--cream);
  padding: 28px 0;
  margin-top: 60px;
}

.footer a {
  color: var(--cream);
}

.footer a:hover {
  text-decoration: underline;
}

.footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer small {
  color: #d9d6cb;
}

/* Footer social icons */
#social-facebook,
#social-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--cream);
}

#social-facebook:hover,
#social-instagram:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

#social-facebook:focus,
#social-instagram:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .admin-pro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    width: 100%;
    align-items: center;
    margin-left: 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-actions {
    display: none;
    width: 100%;
    justify-content: center;
    padding-bottom: 8px;
    margin-left: 0;
    flex-direction: column;
    gap: 10px;
  }

  .nav-actions.open {
    display: flex;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .admin-pro-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PARTICIPANTS PAGE — Professional Styling
   ============================================================ */

/* Header */
.participants-header {
  text-align: center;
  margin-bottom: 24px;
}

.participants-header h1 {
  margin: 0 0 8px 0;
}

.participants-header p {
  margin: 0 0 16px 0;
  font-size: 14px;
}

/* Admin badge */
.dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(206, 50, 91, 0.06);
  border: 1px solid rgba(206, 50, 91, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.dashboard-badge-dot {
  display: inline-flex;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(206, 50, 91, 0.18);
}

/* Participants toolbar - improved layout */
.participants-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.participants-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 320px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 2;
}

.search-input-wrapper {
  flex: 2;
  min-width: 320px;
}

.search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(206, 50, 91, 0.1);
}

.search-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
  font-family: inherit;
  max-width: 160px;
}

.sort-select:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(206, 50, 91, 0.1);
}

.search-btn,
.search-clear-btn {
  white-space: nowrap;
}

.add-btn {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .participants-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .participants-search-bar {
    flex-direction: column;
    min-width: auto;
  }

  .toolbar-left {
    flex-direction: column;
  }

  .search-input-wrapper {
    min-width: auto;
  }

  .search-input {
    width: 100%;
  }

  .sort-select,
  .search-btn,
  .search-clear-btn,
  .add-btn {
    width: 100%;
  }
}

/* Actions cell */
.table-actions {
  text-align: center;
  padding: 12px;
}

.table-actions-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

/* Action icons */
.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.action-icon:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.action-edit {
  color: var(--primary);
}

.action-delete {
  color: #a83232;
}

/* Remove white background from delete form */
.inline-delete-form {
  display: inline;
  margin: 0;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* No-results message */
.no-results-message {
  text-align: center;
  padding: 20px;
  color: var(--muted);
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.no-results p {
  margin: 8px 0;
}

.no-results a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.no-results a:hover {
  text-decoration: underline;
}

/* ============================================================
   PARTICIPANTS PAGE — Controls, Cards, Pagination
   ============================================================ */

/* Header */
.participants-header {
  text-align: center;
  margin-bottom: 24px;
}

.participants-header h1 {
  margin: 0 0 8px 0;
}

.participants-header p {
  margin: 0 0 16px 0;
  font-size: 14px;
}

/* Admin badge */
.dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(206, 50, 91, 0.06);
  border: 1px solid rgba(206, 50, 91, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.dashboard-badge-dot {
  display: inline-flex;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(206, 50, 91, 0.18);
}

/* Controls: search + sort + add button */
.participants-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 24px 0;
}

/* Override global form card style JUST for this search bar */
.participants-search-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  max-width: none;
}

/* Input wrapper so the input can stretch nicely */
.search-input-wrapper {
  position: relative;
  flex: 1 1 260px;
  max-width: 380px;
}

/* Search input – professional pill style */
.search-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  outline: none;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(206, 50, 91, 0.12);
}

/* Sort select */
.sort-select {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

/* Small button tweaks for search actions */
.search-btn,
.search-clear-btn {
  padding-inline: 14px !important;
  font-size: 14px;
}

/* Meta "showing X of Y" */
.participants-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: left;
}

/* Grid layout for participant cards */
.participants-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

/* Card */
.participant-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card header: avatar + name */
.participant-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.participant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(153, 183, 198, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.participant-card-title h3 {
  margin: 0;
  font-size: 17px;
}

.participant-username {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

/* Card body fields */
.participant-card-body {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.participant-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.field-value {
  font-size: 14px;
  color: var(--text);
  word-break: break-word;
}

/* Card footer / actions */
.participant-card-footer {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

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

/* Action icons (edit / delete) */
.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.action-icon:hover {
  opacity: 0.75;
  transform: translateY(-1px);
}

.action-edit {
  color: var(--primary);
}

.action-delete {
  color: #a83232;
}

/* Ensure delete form has no card chrome */
.inline-delete-form {
  display: inline;
  margin: 0;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* No-results message */
.no-results-message {
  text-align: center;
  padding: 24px 0;
  color: var(--muted);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 22px;
}

.page-link {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.page-link:hover {
  border-color: var(--primary);
}

.page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .participants-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participants-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .participants-controls>a {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .participants-grid {
    grid-template-columns: 1fr;
  }

  .participants-controls>a {
    width: 100%;
    justify-content: center;
  }

  .participants-search-bar {
    width: 100%;
  }

  .search-input-wrapper {
    flex: 1 1 100%;
  }

  .sort-select {
    width: 100%;
  }
}

/* Password field with toggle eye icon */
.password-field-wrapper {
  position: relative;
  margin-bottom: 16px;
  /* wrapper controls spacing */
}

.password-field-wrapper input {
  padding-right: 45px;
  /* space for the eye icon */
  margin-bottom: 0;
  /* avoid extra space below input */
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  /* true vertical centering */
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #6e736e;
  padding: 0;
}

/* Slider scale styling */
.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin: 2px 0 8px 0;
  padding: 0;
  width: 100%;
  position: relative;
}

.slider-scale span {
  flex: 0 0 auto;
  text-align: center;
  line-height: 1;
  width: 0;
  position: relative;
  left: 0;
}

.slider-scale span:first-child {
  left: 0;
  text-align: left;
}

.slider-scale span:last-child {
  left: 0;
  text-align: right;
}

/* Range input styling for better alignment */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e8e8e8;
  outline: none;
  -webkit-slider-thumb-appearance: none;
  appearance: none;
  cursor: pointer;
  padding: 5px 0;
  margin: 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(206, 50, 91, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  border: 2px solid #ffffff;
  margin-top: -8px;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 5px 12px rgba(206, 50, 91, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.05);
}

input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
}

input[type="range"]::-moz-range-progress {
  background: var(--primary);
  height: 8px;
  border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(206, 50, 91, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  margin-top: -8px;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 5px 12px rgba(206, 50, 91, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

input[type="range"]::-moz-range-thumb:active {
  transform: scale(1.05);
}

/* Boxed form sections */
.form-section {
  background: var(--white);
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.form-section h3 {
  margin-top: 0;
}

/* Subtle error highlight for inputs/selects */
.input-error {
  border-color: #dc2626 !important;
}

.input-error:focus {
  outline: 2px solid #dc2626 !important;
  border-color: #dc2626 !important;
}

/* 418 Teapot Page */
.teapot-page {
  text-align: left;
}

.teapot-hero {
  max-width: 720px;
  margin: 0 auto 24px;
}

.teapot-hero h1 {
  margin-top: 8px;
  margin-bottom: 10px;
}

.teapot-lead {
  font-size: 14px;
  max-width: 580px;
}

.teapot-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(206, 50, 91, 0.06);
  border: 1px solid rgba(206, 50, 91, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.teapot-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(206, 50, 91, 0.18);
}

/* Content card */
.teapot-content {
  max-width: 720px;
  margin: 0 auto 24px;
}

.teapot-song p {
  margin-bottom: 12px;
}

/* Responsive video wrapper */
.teapot-video {
  margin-top: 24px;
}

.teapot-video-inner {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  background: #000;
}

.teapot-video-inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Footer button */
.teapot-footer {
  text-align: center;
  margin-top: 8px;
}

/* Divider line inside dashboard dropdown */
.dashboard-dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 6px 0;
  width: 100%;
}


/* ============================================================
   ABOUT PAGE — Layout & Team Cards
   ============================================================ */

.page-about {
  text-align: left;
}

/* Hero */
.about-hero {
  text-align: center;
  margin-bottom: 40px;
}

.about-hero h1 {
  margin-bottom: 8px;
}

.about-hero-subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
}

/* Generic about sections */
.about-section {
  margin-top: 40px;
}

.about-section h2 {
  text-align: left;
  margin-bottom: 12px;
}

.about-section-text {
  max-width: 820px;
  font-size: 15px;
}

/* On larger screens, center paragraphs in the middle column width */
.page-about .about-section-text,
.page-about p {
  margin-left: 0;
}

.page-about .about-section-text {
  margin-bottom: 8px;
}

/* STORY + VIDEO */
.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.about-video-wrapper {
  width: 100%;
}

.about-video-inner {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #000;
}

.about-video-inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* TEAM SECTIONS */
.team-section {
  margin-top: 56px;
}

.team-intro {
  max-width: 820px;
  margin: 4px 0 20px;
  font-size: 14px;
}

/* Leadership grid (2-up) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Board grid (3-up) */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Team cards */
.team-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Slightly more compact style for board members */
.team-card--compact {
  padding: 16px 16px 14px;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-photo-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(153, 183, 198, 0.24);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  margin: 0;
  font-size: 18px;
}

.team-role {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-card-body {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.team-card-body p {
  margin: 0;
}

/* Card footer (LinkedIn icon, etc.) */
.team-card-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

/* LinkedIn icon (no external library) */
.social-icon.linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #0a66c2;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.35);
  transition: transform 0.08s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.social-icon.linkedin-icon span {
  transform: translateY(1px);
}

.social-icon.linkedin-icon:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.45);
}

/* IMPACT & CTA */
.about-impact {
  margin-top: 56px;
  text-align: center;
}

.about-impact h2 {
  text-align: center;
}

.about-cta {
  margin-top: 48px;
  text-align: center;
}

.about-cta h2 {
  text-align: center;
}

.about-cta .about-section-text {
  margin: 0 auto 20px;
  text-align: center;
}

.about-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .about-story-grid>div:first-child {
    order: 1;
  }

  .about-story-grid .about-video-wrapper {
    order: 2;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .board-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    padding: 16px;
  }

  .about-hero-subtitle {
    font-size: 15px;
  }
}

/* ============================================================
   HOME PAGE — HERO + CAROUSEL
   ============================================================ */

.hero {
  position: relative;
  min-height: 520px;
  color: #ffffff;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Bootstrap carousel container */
.hero-carousel-inner {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Ensure carousel maintains aspect ratio */
  width: 100%;
  height: 100%;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
}

/* Ensure carousel controls stay within bounds */
.carousel-control-prev,
.carousel-control-next {
  width: auto !important;
  background: none !important;
  border: none !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev {
  left: 20px !important;
}

.carousel-control-next {
  right: 20px !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
  display: none;
}

.carousel-control-prev-icon::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-left: 2px solid white;
  border-top: 2px solid white;
  transform: rotate(-45deg);
}

.carousel-control-next-icon::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid white;
  border-top: 2px solid white;
  transform: rotate(45deg);
}

/* Ensure hero images fill and crop nicely */
.hero-image {
  height: 100%;
  object-fit: cover;
}

/* Dark overlay for readability */
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.65));
  mix-blend-mode: multiply;
}

/* Hero content on top of carousel */
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-text-block {
  max-width: 540px;
  text-align: left;
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fce2e7;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f4f4f4;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Make outline button visible on dark hero */
.hero-ctas .btn-outline {
  border-color: #ffffff !important;
  color: #ffffff !important;
  background: transparent !important;
}

.hero-ctas .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* ============================================================
   HOME PAGE — PROGRAMS SECTION
   ============================================================ */

.programs-section {
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-header h2 {
  margin-bottom: 4px;
}

.section-header .muted {
  max-width: 640px;
  margin: 0 auto;
}

/* Programs layout */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Individual program card */
.program-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

/* Top image */
.program-media {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 */
  overflow: hidden;
}

.program-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Nudge Mariachi image up so faces aren't cut off */
.program-media--mariachi img {
  object-position: center 20%;
  /* tweak 20% → 10% or 0% if you want it higher */
}

/* Program content */
.program-body {
  padding: 18px 18px 20px;
}

.program-body h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.program-description {
  margin: 0 0 12px;
  font-size: 14px;
}

/* Small list of details */
.program-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.program-meta li+li {
  margin-top: 4px;
}

/* ============================================================
   HOME PAGE — RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero {
    min-height: 480px;
  }

  .hero-content {
    padding: 64px 0;
  }

  .hero-text-block {
    max-width: 100%;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 420px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 15px;
  }
}