/* Import Google Fonts - DM Serif Display, Montserrat, and Pacifico */
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Montserrat:wght@300;400;500;600;700&family=Pacifico&display=swap");

/* Color Palette Variables */
:root {
  /* Palette Colors */
  --powder-blue: #99b7c6;
  --lavender: #978ec4;
  --cream: #f9f5ea;
  --blush-light: #ffd8d1;
  --blush: #f9afb1;
  --sage: #9ab59d;
  --charcoal: #3a3f3b;
  --peach: #f4b092;
  --raspberry: #ce325b;

  /* Functional Colors */
  --primary: #ce325b;
  --primary-hover: #3a3f3b;
  --secondary: var(--lavender);
  --secondary-hover: #8680b0;
  --accent: var(--peach);
  --accent-dark: var(--raspberry);
  --text-dark: var(--charcoal);
  --text-medium: #5a5f5b;
  --text-light: #8a8f8b;
  --background: var(--cream);
  --background-light: #ffffff;
  --header-bg: var(--blush-light);
  --border-color: #e8ddd5;

  /* Typography */
  --font-display: "DM Serif Display", serif;
  --font-body: "Montserrat", sans-serif;
  --font-script: "Pacifico", cursive;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Skip Navigation Link - Accessibility */
.skip-link {
  position: absolute;
  top: -80px;
  left: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Navigation Styles */
nav {
  background-color: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.logo a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: normal;
  color: var(--raspberry);
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.logo a:hover {
  color: white;
  transform: translateY(-1px);
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  font-weight: 800;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a.selected-nav {
  color: var(--primary);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--background-light);
  box-shadow: 0 8px 24px rgba(58, 63, 59, 0.12);
  border-radius: 12px;
  margin-top: 0.75rem;
  min-width: 200px;
  padding: 0.75rem 0;
  border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-medium);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background-color: var(--cream);
  padding-left: 2rem;
}

/* Buttons */
.btn {
  padding: 0.7rem 1.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family: var(--font-body);
  text-align: center;
  min-height: 44px;
  line-height: 1.5;
  box-sizing: border-box;
}

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

.btn-primary:hover {
  background-color: #7a9d7d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(154, 181, 157, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(151, 142, 196, 0.3);
}

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

.btn-success:hover {
  background-color: #88a48b;
}

.btn-danger {
  background-color: var(--accent-dark);
  color: white;
}

.btn-danger:hover {
  background-color: #b52a4e;
}

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

.btn-add:hover {
  background-color: var(--charcoal);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(153, 183, 198, 0.4);
}

.btn-add a {
  color: inherit;
  text-decoration: none;
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

.btn-large {
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
}

/* Full-width button utility */
.btn-block {
  width: 100%;
}

/* Donate buttons */
.donate-btn {
  background: var(--blush);
  color: white !important;
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(206, 50, 91, 0.2);
}

.donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(206, 50, 91, 0.3);
}

/* Login Buttons */
.login-btn {
  padding: 0.6rem 1.5rem;
  background-color: var(--powder-blue);
  color: white !important;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(151, 142, 196, 0.25);
}

/* ============================================ */
/* MODERN FORM STYLES */
/* ============================================ */

.add-card {
  max-width: 900px;
  margin: 3rem auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(58, 63, 59, 0.08);
  overflow: hidden;
}

/* Compact card variant for login/smaller forms */
.add-card.compact {
  max-width: 500px;
}

.modern-form {
  padding: 3rem;
}

.form-section {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type,
.form-section.no-border {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.form-group.focused .form-label {
  color: var(--primary);
}

.form-label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text-medium);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.required {
  color: var(--primary);
  font-weight: bold;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  background-color: var(--background-light);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(206, 50, 91, 0.1);
  transform: translateY(-1px);
}

.form-input:hover,
.form-select:hover {
  border-color: var(--secondary);
}

.form-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* Select Dropdown Styling */
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233A3F3B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.form-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23CE325B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Input with Prefix (for currency, etc.) */
.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 1rem;
  color: var(--text-medium);
  font-weight: 600;
  pointer-events: none;
  z-index: 1;
}

.form-input-with-prefix {
  padding-left: 2.5rem;
}

/* Radio Button Styling */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.radio-group-inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  position: relative;
}

.radio-label:hover {
  border-color: var(--secondary);
  background-color: rgba(151, 142, 196, 0.05);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(151, 142, 196, 0.1);
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
  opacity: 1;
}

.radio-label input[type="radio"]:checked ~ .radio-text strong {
  color: var(--charcoal);
}

.radio-label:has(input[type="radio"]:checked) {
  border-color: var(--powder-blue);
  background-color: #f2f6f8;
  box-shadow: 0 2px 12px rgba(206, 50, 91, 0.15);
}

.radio-custom {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.radio-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.radio-text strong {
  color: var(--text-dark);
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 1.05rem;
}

.radio-text small {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Inline radio buttons (smaller style) */
.radio-group-inline .radio-label {
  padding: 0.7rem 1.2rem;
  flex: 0 1 auto;
}

.radio-group-inline .radio-label:hover {
  transform: translateY(-2px);
}

.radio-group-inline .radio-text {
  flex-direction: row;
  align-items: center;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
  margin-top: 2rem;
}

/* Compact form actions (for login, single-button forms) */
.form-actions.compact {
  flex-direction: column;
  border-top: none;
  margin-top: 0.5rem;
  padding-top: 0;
  gap: 0.75rem;
}

.form-actions.compact .btn {
  width: 100%;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-medium);
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ============================================ */
/* FILTER & FORM CONTROL STYLES */
/* ============================================ */

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  background-color: var(--background-light);
}

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

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233A3F3B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

select.form-control:hover {
  border-color: var(--secondary);
}

select.form-control:focus {
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23CE325B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Filter Section (top search row) */
.filter-section {
  background-color: white;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(58, 63, 59, 0.06);
}

.filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  align-items: flex-end;
}

.filter-item {
  flex: 1 1 auto;
  min-width: 0;
}

.filter-item.filter-column {
  flex: 0 0 220px;
}

.filter-item.filter-search {
  flex: 1 1 auto;
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}

.search-input-group .form-control {
  flex: 1 1 auto;
  height: 48px;
}

.search-input-group .btn {
  height: 48px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.filter-toggle-btn {
  height: 48px;
  flex: 0 0 auto;
  width: auto;
  padding: 0.7rem 1.8rem;
}

.advanced-filter-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.is-hidden {
  display: none;
}

.filter-options-title {
  color: #7eb8b8;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.filter-card-title {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

.filter-card-scroll {
  max-height: 200px;
  overflow-y: auto;
}

.filter-checkbox-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-medium);
}

.filter-actions {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.filter-actions-item {
  flex: 0.8;
}

.filter-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Tables */
.table-container {
  background-color: var(--background-light);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(58, 63, 59, 0.06);
  overflow: hidden;
  margin-bottom: 2rem;
  margin-top: 2rem;
  border: 1px solid var(--border-color);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2rem;
  border-bottom: 2px solid var(--border-color);
  background: var(--powder-blue);
}

.table-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--charcoal);
  font-weight: 400;
}

.table-actions {
  display: flex;
  gap: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}

thead {
  background: white;
}

.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.2s ease;
}

.sortable:hover {
  background-color: rgba(154, 181, 157, 0.1);
}

.sort-icon {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.9em;
  color: var(--charcoal);
  transition: color 0.2s ease;
}

.sortable:hover .sort-icon {
  color: #7eb8b8;
}

.sort-icon.sort-active {
  color: var(--primary);
  font-weight: bold;
}

td {
  padding: 1.2rem;
  border-bottom: 1px solid #f5f0ea;
}

tr {
  transition: all 0.2s ease;
}

tbody tr:hover {
  background-color: rgba(255, 216, 209, 0.2);
}

.row-highlighted {
  background-color: #fff8f0 !important;
}

.row-selected {
  background-color: #f0f5ff !important;
}

.row-actions {
  display: flex;
  gap: 0.5rem;
}

/* Selected row styling */
tbody tr:has(.row-checkbox:checked) {
  background-color: rgba(249, 175, 177, 0.2) !important;
}

tbody tr:has(.row-checkbox:checked):hover {
  background-color: rgba(249, 175, 177, 0.3) !important;
}

/* Table will try to fit all columns, shrinking as needed */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto; /* Allow columns to shrink naturally */
}

/* Ensure table wrapper is scrollable */
.table-container > div:last-child {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Headers: minimum width is the content width (no arbitrary min-width) */
th {
  padding: 1.2rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-medium);
  border-bottom: 2px solid var(--border-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #d5e1e8;
  white-space: nowrap; /* Prevent text wrapping in headers */
  text-align: center;
}

/* Table cells: will wrap text if column shrinks below header width */
td {
  padding: 1.2rem;
  border-bottom: 1px solid #f5f0ea;
  white-space: normal; /* Allow text wrapping in cells */
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 0; /* Forces columns to respect table-layout and shrink */
}

/* Checkbox column should stay minimal */
th:first-child,
td:first-child {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 0.6rem;
  white-space: nowrap;
}

/* Add scroll indicator for better UX */
.table-container > div:last-child::after {
  content: "→ Scroll for more";
  position: sticky;
  right: 0;
  bottom: 10px;
  background: var(--powder-blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.table-container > div:last-child:hover::after {
  opacity: 0.8;
}

/* Cards */
.card {
  background-color: var(--background-light);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(58, 63, 59, 0.06);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(58, 63, 59, 0.1);
  transform: translateY(-2px);
}

.card-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
}

.card-body {
  color: var(--text-medium);
  line-height: 1.7;
}

.card-footer {
  border-top: 2px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-primary {
  background-color: rgba(154, 181, 157, 0.2);
  color: var(--primary);
}

.badge-secondary {
  background-color: rgba(151, 142, 196, 0.2);
  color: var(--secondary);
}

.badge-success {
  background-color: rgba(154, 181, 157, 0.2);
  color: #5a8a5d;
}

.badge-warning {
  background-color: rgba(244, 176, 146, 0.2);
  color: #c98a5a;
}

.badge-danger {
  background-color: rgba(206, 50, 91, 0.2);
  color: var(--accent-dark);
}

/* Alerts */
.alert {
  padding: 1.2rem 1.75rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  border-left: 4px solid;
}

.alert-success {
  background-color: rgba(154, 181, 157, 0.15);
  border-color: var(--sage);
  color: #4a7d4a;
}

.alert-info {
  background-color: rgba(153, 183, 198, 0.15);
  border-color: var(--powder-blue);
  color: #5a8a8a;
}

.alert-warning {
  background-color: rgba(244, 176, 146, 0.15);
  border-color: var(--peach);
  color: #9a7a4a;
}

.alert-danger {
  background-color: rgba(206, 50, 91, 0.15);
  border-color: var(--accent-dark);
  color: #b86a6a;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(58, 63, 59, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(58, 63, 59, 0.3);
}

.modal-header {
  padding: 1.75rem 2rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-dark);
  font-weight: 400;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-medium);
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--accent-dark);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 2px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Hero Section */
.hero {
  background: var(--blush-light);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-compact {
  padding: 3.5rem 2rem;
}

.hero-compact.login-hero {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.8rem;
  color: var(--accent-dark);
  margin-bottom: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-compact h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-medium);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 0;
}

/* Page Header */
.page-header {
  background: var(--blush-light);
  padding: 3.5rem 2rem;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--text-medium);
  font-size: 1.15rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: linear-gradient(
    135deg,
    rgba(154, 181, 157, 0.2) 0%,
    rgba(153, 183, 198, 0.2) 100%
  );
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(154, 181, 157, 0.2);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-medium);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Footer */
footer {
  background: linear-gradient(
    to right,
    rgba(154, 181, 157, 0.3) 0%,
    rgba(153, 183, 198, 0.3) 100%
  );
  padding: 3rem 2rem 1.5rem;
  margin-top: auto;
  text-align: center;
  color: var(--text-dark);
}

footer p {
  color: var(--text-dark);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

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

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 2rem;
}
.mt-4 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 2rem;
}
.mb-4 {
  margin-bottom: 3rem;
}

.p-1 {
  padding: 0.5rem;
}
.p-2 {
  padding: 1rem;
}
.p-3 {
  padding: 2rem;
}
.p-4 {
  padding: 3rem;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gap-1 {
  gap: 0.5rem;
}
.gap-2 {
  gap: 1rem;
}
.gap-3 {
  gap: 2rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .filter-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
    font-size: 0.9rem;
  }

  .logo img {
    height: 40px;
  }

  .logo a {
    font-size: 1.6rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-compact h1 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .filter-row {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .filter-item.filter-column,
  .filter-item.filter-search {
    flex: 1 1 100%;
  }

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

  .table-container {
    overflow-x: auto;
  }

  table {
    min-width: 600px;
  }

  /* Form responsive */
  .modern-form {
    padding: 2rem 1.5rem;
  }

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

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }

  .radio-group-inline {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .logo img {
    height: 35px;
  }

  .logo a {
    font-size: 1.4rem;
  }

  .modern-form {
    padding: 1.5rem 1rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .add-card {
    margin: 2rem auto;
  }
}

/* ============================================ */
/* LANDING PAGE (index.ejs) SPECIFIC STYLES */
/* ============================================ */

/* Hero Button Spacing */
.hero .donate-btn {
  margin-top: 1.5rem;
}

/* Section Headings */
.home-section-heading {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.home-section-subtitle {
  font-size: 1.1rem;
}

/* Program Card Styles */
.home-program-card {
  position: relative;
  overflow: hidden;
}

.home-program-image-container {
  position: relative;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.5rem;
}

.home-program-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.home-program-label-container {
  text-align: center;
  padding: 0.75rem;
  position: relative;
  z-index: 1;
}

.home-program-label {
  background-color: rgba(153, 183, 198, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Grid Spacing for Programs */
.home-programs-grid-top {
  margin-top: 3rem;
}

.home-programs-grid-bottom {
  margin-top: 2rem;
}

/* Enrollment Section */
.home-enrollment-section {
  background-color: var(--blush-light);
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.home-enrollment-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.home-enrollment-heading {
  color: var(--text-dark);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-display);
}

.home-enrollment-text {
  color: var(--text-dark);
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Sponsorship Section */
.home-sponsorship-section {
  padding: 4rem 2rem;
}

.home-sponsorship-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.home-sponsorship-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.home-sponsorship-flower {
  width: 60px;
  height: auto;
  object-fit: contain;
}

.home-sponsorship-text {
  color: var(--text-medium);
  font-size: 1.1rem;
  margin-top: 2rem;
}

.home-sponsorship-email {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.home-sponsorship-email:hover {
  text-decoration: underline;
}

.home-sponsorship-thanks {
  color: var(--text-medium);
  font-size: 1.2rem;
  margin-top: 1rem;
  font-style: italic;
}

/* Mission Section */
.home-mission-section {
  background-color: #fff;
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.home-mission-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.home-mission-heading {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.home-mission-text {
  color: var(--text-medium);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.home-mission-text:last-child {
  margin-bottom: 0;
}

/* About page call-to-action */
.about-cta {
  max-width: 900px;
  margin: 3rem auto 4rem;
  padding: 2.5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 50%, #fdf7f3 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(34, 51, 84, 0.08);
}

.about-cta-title {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.about-cta-text {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  color: var(--text-medium);
  line-height: 1.7;
}

.about-cta-button {
  padding: 0.9rem 2.4rem;
  font-size: 1.05rem;
  border-radius: 999px;
}

/* Thank You Section */
.home-thank-you-section {
  background-color: #fff;
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.home-thank-you-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.home-thank-you-heading {
  color: var(--primary);
  font-size: 3rem;
  margin-bottom: 2rem;
  font-family: var(--font-display);
}

.home-thank-you-text {
  color: var(--text-medium);
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Button Styles for Enrollment/Sponsor */
.btn-charcoal {
  background-color: var(--charcoal);
  color: white;
  box-shadow: 0 4px 12px rgba(58, 63, 59, 0.3);
}

.btn-charcoal:hover {
  background-color: #2a2f2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(58, 63, 59, 0.4);
}

/* Footer Text */
footer .footer-subtext {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Login page specific styles */
.login-card {
  max-width: 500px;
}

.login-form-section {
  border-bottom: none;
  margin-bottom: 0;
}

.login-form-actions {
  border-top: none;
  margin-top: 1rem;
  padding-top: 0;
}

/* ============================================ */
/* TAB NAVIGATION STYLES */
/* ============================================ */

.tab-navigation {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 1rem 1.75rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-medium);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-family: var(--font-body);
  margin-bottom: -3px;
}

.tab-btn:hover {
  color: var(--powder-blue);
  background-color: white;
}

.tab-btn.active {
  color: white;
  border-bottom-color: var(--powder-blue);
  background-color: var(--powder-blue);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================ */
/* PROFILE INFORMATION STYLES */
/* ============================================ */

/* Detailed Information Sections */
.profile-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.profile-section-card {
  margin-bottom: 0;
}

.profile-section-card .card-header {
  background-color: var(--powder-blue);
  padding: 1rem 1.5rem;
}

.profile-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: white;
  margin: 0;
  font-weight: 400;
}

.profile-section-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.profile-item:last-child {
  border-bottom: none;
}

.profile-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-value {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 500;
}

.profile-value-donations {
  color: var(--sage);
  font-weight: 600;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 2rem 0;
  border-top: 2px solid var(--border-color);
  margin-top: 2rem;
}

.profile-actions .btn {
  min-width: 180px;
}

/* Survey comments row styling */
.survey-comments-row td {
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
}

/* Text utility for success color */
.text-success {
  color: var(--sage);
}

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

/* ============================================ */
/* CALENDAR PAGE STYLES - CAROUSEL ONLY */
/* ============================================ */

/* Calendar Container with Navigation */
.calendar-navigation-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto 3rem;
}

/* Navigation Buttons */
.calendar-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--powder-blue);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(153, 183, 198, 0.3);
}

.calendar-nav-btn:hover:not(:disabled) {
  background-color: var(--lavender);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(151, 142, 196, 0.4);
}

.calendar-nav-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}

.calendar-nav-prev {
  left: -70px;
}

.calendar-nav-next {
  right: -70px;
}

.calendar-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Month Indicator */
.calendar-month-indicator {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-medium);
  font-size: 1rem;
  font-weight: 600;
}

/* Calendar Grid - Carousel Mode Only */
.calendar-grid {
  position: relative;
  min-height: 650px;
  width: 100%;
}

.calendar-grid .calendar-card {
  display: none;
  animation: fadeInSlide 0.4s ease;
}

.calendar-grid .calendar-card.active {
  display: block;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Calendar Card */
.calendar-card {
  background-color: var(--background-light);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(58, 63, 59, 0.08);
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.calendar-card:hover {
  box-shadow: 0 6px 32px rgba(58, 63, 59, 0.12);
}

/* Calendar Header */
.calendar-header {
  background-color: var(--powder-blue);
  padding: 1.5rem;
  text-align: center;
  border-bottom: 3px solid var(--lavender);
}

.calendar-month-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: white;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Calendar Body */
.calendar-body {
  padding: 1.5rem;
  background-color: white;
}

/* Day Headers */
.calendar-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.calendar-day-header {
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--powder-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
}

/* Calendar Days Grid - FIXED SIZE */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  grid-auto-rows: 110px;
}

/* Individual Day Cell - FIXED SIZE */
.calendar-day {
  height: 110px;
  padding: 0.4rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: white;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

.calendar-day:hover:not(.calendar-day-empty) {
  background-color: var(--cream);
  border-color: var(--powder-blue);
  z-index: 10;
}

/* Empty Day Cells (before month starts) */
.calendar-day-empty {
  background-color: transparent;
  border: 1px dashed var(--border-color);
  opacity: 0.3;
}

.calendar-day-empty:hover {
  background-color: transparent;
  border-color: var(--border-color);
}

/* Past Days Styling */
.calendar-day-past {
  background-color: #f5f5f5;
  opacity: 0.6;
}

.calendar-day-past .calendar-day-number {
  color: var(--text-light);
}

.calendar-day-past:hover {
  background-color: #f0f0f0;
  opacity: 0.7;
}

/* Day Number */
.calendar-day-number {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  flex-shrink: 0;
}

/* Today's Date */
.calendar-day-today {
  border: 2px solid var(--powder-blue);
  background-color: #edf4f4;
}

.calendar-day-today .calendar-day-number {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Days with Events */
.calendar-day-has-events {
  background-color: #fbf8f1;
  border-color: var(--blush-light);
}

.calendar-day-has-events:hover {
  background-color: var(--blush-light);
  border-color: var(--powder-blue);
}

/* Events Container - SCROLLABLE */
.calendar-events {
  margin-top: 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

/* Scrollbar styling */
.calendar-events::-webkit-scrollbar {
  width: 3px;
}

.calendar-events::-webkit-scrollbar-track {
  background: transparent;
}

.calendar-events::-webkit-scrollbar-thumb {
  background: var(--powder-blue);
  border-radius: 2px;
}

/* Individual Event - SMALLER */
.calendar-event {
  background-color: var(--blush);
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border: 1px solid var(--blush);
  flex-shrink: 0;
}

.calendar-event:hover {
  background-color: var(--powder-blue);
  border-color: var(--lavender);
  box-shadow: 0 2px 6px rgba(153, 183, 198, 0.3);
  transform: translateY(-1px);
}

.calendar-event-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.1rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-time {
  font-size: 0.6rem;
  color: white;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1;
}

/* Event Modal */
.event-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(58, 63, 59, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.event-modal.active {
  display: flex;
}

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

.event-modal-content {
  background-color: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(58, 63, 59, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.event-modal-header {
  background-color: var(--powder-blue);
  padding: 1.5rem 2rem;
  border-bottom: 3px solid var(--lavender);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: white;
  font-weight: 400;
  margin: 0;
}

.event-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.event-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.event-modal-body {
  padding: 2rem;
}

.event-modal-detail {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.event-modal-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.event-modal-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--powder-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.event-modal-value {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .calendar-nav-prev {
    left: -60px;
  }

  .calendar-nav-next {
    right: -60px;
  }
}

@media (max-width: 992px) {
  .calendar-nav-prev {
    left: 10px;
  }

  .calendar-nav-next {
    right: 10px;
  }

  .calendar-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .calendar-month-title {
    font-size: 1.5rem;
  }

  .calendar-days {
    grid-auto-rows: 90px;
  }

  .calendar-day {
    height: 90px;
    padding: 0.3rem;
  }

  .calendar-day-number {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }

  .calendar-day-header {
    font-size: 0.7rem;
    padding: 0.4rem 0;
  }

  .calendar-event {
    padding: 0.2rem 0.3rem;
  }

  .calendar-event-name {
    font-size: 0.6rem;
  }

  .calendar-event-time {
    font-size: 0.55rem;
  }

  .event-modal-content {
    width: 95%;
  }

  .event-modal-header {
    padding: 1.25rem 1.5rem;
  }

  .event-modal-title {
    font-size: 1.3rem;
  }

  .event-modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .calendar-body {
    padding: 1rem;
  }

  .calendar-days {
    grid-auto-rows: 75px;
    gap: 0.3rem;
  }

  .calendar-day {
    height: 75px;
    padding: 0.25rem;
  }

  .calendar-day-number {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
  }

  .calendar-event {
    padding: 0.15rem 0.25rem;
  }

  .calendar-event-name {
    font-size: 0.55rem;
  }

  .calendar-event-time {
    font-size: 0.5rem;
  }

  .calendar-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .calendar-nav-prev {
    left: 5px;
  }

  .calendar-nav-next {
    right: 5px;
  }

  .event-modal-title {
    font-size: 1.1rem;
  }

  .event-modal-body {
    padding: 1.25rem;
  }

  .event-modal-detail {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
}

/* Event Modal Footer */
.event-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 2px solid var(--border-color);
  background-color: var(--cream);
}

.event-modal-footer .btn {
  margin: 0;
}

/* Full event styling */
.event-full-message {
  background-color: rgba(206, 50, 91, 0.1);
  color: var(--primary);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
}

/* Confirmation and Info Modal specific styles */
.event-modal-content {
  animation: slideUp 0.3s ease;
}

.event-modal-header[style*="background-color: var(--lavender)"] {
  background-color: var(--lavender) !important;
}

.event-modal-header.error-header {
  background-color: var(--primary) !important;
}

.event-modal-header.warning-header {
  background-color: var(--peach) !important;
}

.event-modal-header.info-header {
  background-color: var(--powder-blue) !important;
}

/* User Registered Events */
.calendar-event-registered {
  background-color: var(--powder-blue) !important;
  border-color: var(--powder-blue) !important;
}

.calendar-event-registered:hover {
  background-color: var(--lavender) !important;
  border-color: var(--lavender) !important;
}

.calendar-event-not-registered {
  background-color: var(--blush) !important;
  border-color: var(--blush) !important;
}

.calendar-event-not-registered:hover {
  background-color: var(--powder-blue) !important;
  border-color: var(--lavender) !important;
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(58, 63, 59, 0.06);
  flex-wrap: wrap;
}

.calendar-legend-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
  margin-right: 0.5rem;
}

.calendar-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.calendar-legend-color.registered {
  background-color: var(--powder-blue);
}

.calendar-legend-color.not-registered {
  background-color: var(--blush);
}

.calendar-legend-label {
  font-size: 0.9rem;
  color: var(--text-medium);
  font-weight: 500;
}

/* Hide legend when not logged in */
.calendar-legend.hidden {
  display: none;
}

@media (max-width: 768px) {
  .calendar-legend {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .calendar-legend-title {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* ============================================
   GOOGLE TRANSLATE WIDGET STYLING
   ============================================ */

/* Hide the Google Translate banner at top */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
}

/* Custom Language Selector */
.custom-language-selector {
  position: relative;
  display: inline-block;
}

.language-dropdown-btn {
  background-color: white;
  border: 2px solid var(--powder-blue);
  border-radius: 25px;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-dark);
}

.language-dropdown-btn:hover {
  background-color: var(--powder-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(153, 183, 198, 0.3);
}

.dropdown-arrow {
  font-size: 0.8rem;
}

.language-dropdown-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5rem;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(58, 63, 59, 0.15);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  z-index: 1000;
  overflow: hidden;
}

.language-dropdown-menu.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.language-dropdown-menu a:hover {
  background-color: var(--cream);
  color: var(--powder-blue);
  padding-left: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .language-dropdown-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }

  .language-dropdown-menu {
    min-width: 180px;
  }
}

.login-error-container {
  margin-top: 2rem;
}

.view-comments-btn .material-symbols-outlined {
  font-size: 1.3rem;
  font-weight: 350;
  vertical-align: middle;
}

.view-comments-btn {
  padding: 0.15rem 0.25rem;
  line-height: 1;
  background-color: transparent;
}

.view-comments-btn:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}
/* ============================================ */
/* COMPREHENSIVE TABLE FIXES */
/* ============================================ */

/* ========================================
   FIX 1: MILESTONES TABLE COLUMN WIDTHS
   ======================================== */

/* Milestones tab - specific column widths */
#milestones-tab th:nth-child(1),
#milestones-tab td:nth-child(1) {
  width: 50px;
  min-width: 50px;
  max-width: 50px; /* Checkbox column */
}

#milestones-tab th:nth-child(2),
#milestones-tab td:nth-child(2) {
  width: 50%; /* Title takes 50% of remaining space */
  min-width: 300px;
}

#milestones-tab th:nth-child(3),
#milestones-tab td:nth-child(3) {
  width: 200px; /* Category */
  min-width: 150px;
  text-align: center;
}

#milestones-tab th:nth-child(4),
#milestones-tab td:nth-child(4) {
  width: 150px; /* Date */
  min-width: 120px;
  text-align: left;
}

/* ========================================
   FIX 2: EVENT REGISTRATIONS - PREVENT OVERLAP
   ======================================== */

/* Remove conflicting table-layout and set proper widths */
#events-tab .table-container table {
  table-layout: fixed; /* CRITICAL: Forces columns to respect widths */
  width: 100%;
  min-width: 1500px; /* Ensures horizontal scroll on smaller screens */
}

/* Event Registrations - Specific column widths */
#events-tab th:nth-child(1),
#events-tab td:nth-child(1) {
  width: 250px; /* Event Name - needs more space */
  min-width: 250px;
  padding-right: 1.5rem;
}

#events-tab th:nth-child(2),
#events-tab td:nth-child(2) {
  width: 120px; /* Event Date */
  min-width: 120px;
}

#events-tab th:nth-child(3),
#events-tab td:nth-child(3) {
  width: 100px; /* Start Time */
  min-width: 100px;
}

#events-tab th:nth-child(4),
#events-tab td:nth-child(4) {
  width: 100px; /* End Time */
  min-width: 100px;
}

#events-tab th:nth-child(5),
#events-tab td:nth-child(5) {
  width: 180px; /* Location */
  min-width: 180px;
}

#events-tab th:nth-child(6),
#events-tab td:nth-child(6) {
  width: 110px; /* Status */
  min-width: 110px;
  text-align: center;
}

#events-tab th:nth-child(7),
#events-tab td:nth-child(7) {
  width: 100px; /* Attended */
  min-width: 100px;
  text-align: center;
}

#events-tab th:nth-child(8),
#events-tab td:nth-child(8) {
  width: 130px; /* Registered On */
  min-width: 130px;
}

#events-tab th:nth-child(9),
#events-tab td:nth-child(9) {
  width: 130px; /* Check-In */
  min-width: 130px;
}

/* Donations tab - spread two columns across the row */
#donations-tab .table-container {
  width: 100%;
}

#donations-tab table {
  width: 100%;
  table-layout: fixed;
}

#donations-tab th:first-child,
#donations-tab td:first-child {
  width: 60%;
}

#donations-tab th:last-child,
#donations-tab td:last-child {
  width: 40%;
  text-align: right;
}

/* ========================================
   FIX 3: GENERAL TABLE IMPROVEMENTS
   ======================================== */

/* Ensure proper text wrapping in all cells */
td {
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Better padding for readability */
#events-tab td,
#events-tab th {
  padding: 1rem 0.8rem;
}

#milestones-tab td,
#milestones-tab th {
  padding: 1rem 1rem;
}

/* ========================================
   FIX 4: RESPONSIVE SCROLL INDICATORS
   ======================================== */

/* Make sure tables can scroll horizontally */
.table-container > div:last-child {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Add visual scroll hint */
@media (max-width: 1600px) {
  #events-tab .table-container > div:last-child::after {
    content: "← Scroll for more columns →";
    position: sticky;
    right: 0;
    bottom: 10px;
    background: var(--powder-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
    margin-left: auto;
    opacity: 0.8;
    pointer-events: none;
  }
}

/* ========================================
   FIX 5: FORCE LEFT ALIGNMENT FOR HEADERS
   ======================================== */

/* Override any center alignment */
th {
  text-align: left !important;
}

/* Except for columns that should be centered */
#events-tab th:nth-child(6),  /* Status */
#events-tab th:nth-child(7),  /* Attended */
#milestones-tab th:nth-child(3) { /* Category */
  text-align: center !important;
}

/* ============================================ */
/* QUICK VIEW DASHBOARD STYLES */
/* ============================================ */

/* Welcome Card */
.dashboard-welcome-card {
  background: var(--powder-blue);  /* Solid powder-blue instead of gradient */
  padding: 2.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  color: white;
  box-shadow: 0 4px 20px rgba(153, 183, 198, 0.3);
}

.dashboard-welcome-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.dashboard-welcome-text {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0;
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-full-width {
  grid-column: 1 / -1;
}

/* Dashboard Cards */
.dashboard-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(58, 63, 59, 0.06);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  box-shadow: 0 4px 20px rgba(58, 63, 59, 0.1);
  transform: translateY(-2px);
}

.dashboard-card-header {
  padding: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  background: var(--powder-blue);
}

.dashboard-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: white;
  margin: 0;
  font-weight: 400;
}

.dashboard-card-body {
  padding: 1.5rem;
}

/* Stats Card */
.dashboard-stats-card .dashboard-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dashboard-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.dashboard-stat-item:hover {
  background: var(--blush-light);
  transform: scale(1.02);
}

.dashboard-stat-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
}

.dashboard-stat-info {
  flex: 1;
}

.dashboard-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.dashboard-stat-label {
  font-size: 0.9rem;
  color: var(--text-medium);
  font-weight: 500;
}

/* Quick Actions Card */
.dashboard-actions-card .dashboard-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s ease;
}

.dashboard-action-btn:hover {
  background: var(--powder-blue);
  color: white;
  border-color: var(--powder-blue);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(153, 183, 198, 0.3);
}

.dashboard-action-btn:hover .dashboard-action-icon {
  background: white;
  color: var(--powder-blue);
}

.dashboard-action-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--powder-blue);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.dashboard-action-text {
  flex: 1;
}

/* Event List */
.dashboard-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-event-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-event-item:hover {
  background: var(--blush-light);
  border-color: var(--powder-blue);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(153, 183, 198, 0.2);
}

.dashboard-event-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--powder-blue);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
}

.dashboard-event-info {
  flex: 1;
}

.dashboard-event-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.dashboard-event-date {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.dashboard-event-arrow {
  font-size: 1.5rem;
  color: var(--powder-blue);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.dashboard-event-item:hover .dashboard-event-arrow {
  transform: translateX(5px);
}

/* Survey List */
.dashboard-survey-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-survey-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: 10px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.dashboard-survey-item:hover {
  border-color: var(--powder-blue);
  box-shadow: 0 2px 8px rgba(153, 183, 198, 0.2);
}

.dashboard-survey-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sage);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
}

.dashboard-survey-info {
  flex: 1;
}

.dashboard-survey-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.dashboard-survey-date {
  font-size: 0.85rem;
  color: var(--text-medium);
}

/* Empty State */
.dashboard-empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.dashboard-empty-icon {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
  opacity: 0.3;
}

.dashboard-empty-text {
  color: var(--text-medium);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Event Details Modal Specific Styles */
.event-modal-detail {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.event-modal-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.event-modal-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--powder-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.event-modal-value {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-stats-card .dashboard-card-body {
    grid-template-columns: 1fr;
  }
  
  .dashboard-welcome-card {
    padding: 2rem;
  }
  
  .dashboard-welcome-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .dashboard-welcome-card {
    padding: 1.5rem;
  }
  
  .dashboard-welcome-title {
    font-size: 1.5rem;
  }
  
  .dashboard-welcome-text {
    font-size: 1rem;
  }
  
  .dashboard-card-header {
    padding: 1.25rem;
  }
  
  .dashboard-card-body {
    padding: 1.25rem;
  }
  
  .dashboard-stat-value {
    font-size: 1.75rem;
  }
  
  .dashboard-event-item,
  .dashboard-survey-item {
    padding: 1rem;
  }
  
  .dashboard-action-btn {
    padding: 0.875rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .dashboard-welcome-card {
    padding: 1.25rem;
  }
  
  .dashboard-welcome-title {
    font-size: 1.3rem;
  }
  
  .dashboard-stat-item {
    padding: 0.875rem;
  }
  
  .dashboard-stat-icon {
    font-size: 1.5rem;
  }
  
  .dashboard-stat-value {
    font-size: 1.5rem;
  }
  
  .dashboard-stat-label {
    font-size: 0.85rem;
  }
}

/* ============================================ */
/* ADMIN DASHBOARD - TABLE LINKS */
/* ============================================ */

.dashboard-table-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.dashboard-table-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s ease;
}

.dashboard-table-link:hover {
  background: var(--blush-light);
  border-color: var(--sage);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(154, 181, 157, 0.2);
}

.dashboard-table-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sage);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
}

.dashboard-table-text {
  flex: 1;
  font-size: 1rem;
}

.dashboard-table-arrow {
  font-size: 1.2rem;
  color: var(--sage);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.dashboard-table-link:hover .dashboard-table-arrow {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .dashboard-table-links {
    grid-template-columns: 1fr;
  }
}

/* ============================================ */
/* ROLE-SPECIFIC COLOR OVERRIDES */
/* ============================================ */

/* PARTICIPANT - Blue Theme (Default) */
.dashboard-welcome-card {
  background: var(--powder-blue);
}

.dashboard-card-header {
  background: var(--powder-blue);
}

/* DONOR/SPONSOR - Purple Theme */
.dashboard-welcome-donor {
  background: var(--lavender) !important;
}

.dashboard-card-header-donor {
  background: var(--lavender) !important;
}

/* ADMIN - Green Theme */
.dashboard-welcome-admin {
  background: var(--sage) !important;
}

.dashboard-card-header-admin {
  background: var(--sage) !important;
}

/* ============================================ */
/* QUICK VIEW DASHBOARD STYLES */
/* ============================================ */

/* Welcome Card */
.dashboard-welcome-card {
  padding: 2.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  color: white;
  box-shadow: 0 4px 20px rgba(153, 183, 198, 0.3);
}

.dashboard-welcome-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.dashboard-welcome-text {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0;
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-full-width {
  grid-column: 1 / -1;
}

/* Dashboard Cards */
.dashboard-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(58, 63, 59, 0.06);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  box-shadow: 0 4px 20px rgba(58, 63, 59, 0.1);
  transform: translateY(-2px);
}

.dashboard-card-header {
  padding: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.dashboard-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: white;
  margin: 0;
  font-weight: 400;
}

.dashboard-card-body {
  padding: 1.5rem;
}

/* Stats Card */
.dashboard-stats-card .dashboard-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dashboard-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.dashboard-stat-item:hover {
  background: var(--blush-light);
  transform: scale(1.02);
}

.dashboard-stat-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
}

.dashboard-stat-info {
  flex: 1;
}

.dashboard-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.dashboard-stat-label {
  font-size: 0.9rem;
  color: var(--text-medium);
  font-weight: 500;
}

/* Quick Actions Card */
.dashboard-actions-card .dashboard-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s ease;
}

.dashboard-action-btn:hover {
  background: var(--powder-blue);
  color: white;
  border-color: var(--powder-blue);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(153, 183, 198, 0.3);
}

.dashboard-action-btn:hover .dashboard-action-icon {
  background: white;
  color: var(--powder-blue);
}

.dashboard-action-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--powder-blue);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.dashboard-action-text {
  flex: 1;
}

/* Event List */
.dashboard-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-event-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-event-item:hover {
  background: var(--blush-light);
  border-color: var(--powder-blue);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(153, 183, 198, 0.2);
}

.dashboard-event-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--powder-blue);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
}

.dashboard-event-info {
  flex: 1;
}

.dashboard-event-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.dashboard-event-date {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.dashboard-event-arrow {
  font-size: 1.5rem;
  color: var(--powder-blue);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.dashboard-event-item:hover .dashboard-event-arrow {
  transform: translateX(5px);
}

/* Survey List */
.dashboard-survey-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-survey-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: 10px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.dashboard-survey-item:hover {
  border-color: var(--powder-blue);
  box-shadow: 0 2px 8px rgba(153, 183, 198, 0.2);
}

.dashboard-survey-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sage);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
}

.dashboard-survey-info {
  flex: 1;
}

.dashboard-survey-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.dashboard-survey-date {
  font-size: 0.85rem;
  color: var(--text-medium);
}

/* Empty State */
.dashboard-empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.dashboard-empty-icon {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1rem;
  opacity: 0.3;
}

.dashboard-empty-text {
  color: var(--text-medium);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Event Details Modal Specific Styles */
.event-modal-detail {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.event-modal-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.event-modal-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--powder-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.event-modal-value {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-stats-card .dashboard-card-body {
    grid-template-columns: 1fr;
  }
  
  .dashboard-welcome-card {
    padding: 2rem;
  }
  
  .dashboard-welcome-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .dashboard-welcome-card {
    padding: 1.5rem;
  }
  
  .dashboard-welcome-title {
    font-size: 1.5rem;
  }
  
  .dashboard-welcome-text {
    font-size: 1rem;
  }
  
  .dashboard-card-header {
    padding: 1.25rem;
  }
  
  .dashboard-card-body {
    padding: 1.25rem;
  }
  
  .dashboard-stat-value {
    font-size: 1.75rem;
  }
  
  .dashboard-event-item,
  .dashboard-survey-item {
    padding: 1rem;
  }
  
  .dashboard-action-btn {
    padding: 0.875rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .dashboard-welcome-card {
    padding: 1.25rem;
  }
  
  .dashboard-welcome-title {
    font-size: 1.3rem;
  }
  
  .dashboard-stat-item {
    padding: 0.875rem;
  }
  
  .dashboard-stat-icon {
    font-size: 1.5rem;
  }
  
  .dashboard-stat-value {
    font-size: 1.5rem;
  }
  
  .dashboard-stat-label {
    font-size: 0.85rem;
  }
}

/* ============================================ */
/* ADMIN DASHBOARD - TABLE LINKS */
/* ============================================ */

.dashboard-table-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.dashboard-table-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.3s ease;
}

.dashboard-table-link:hover {
  background: var(--blush-light);
  border-color: var(--sage);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(154, 181, 157, 0.2);
}

.dashboard-table-icon {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sage);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
}

.dashboard-table-text {
  flex: 1;
  font-size: 1rem;
}

.dashboard-table-arrow {
  font-size: 1.2rem;
  color: var(--sage);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.dashboard-table-link:hover .dashboard-table-arrow {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .dashboard-table-links {
    grid-template-columns: 1fr;
  }
}

        #chat-container {
        width: 100%;
        max-width: none;
        height: calc(100vh - 180px); /* subtract header/footer as needed */
        margin: 0;
        border: 2px solid var(--border-color, #e8ddd5);
        border-radius: 0; /* or keep if you like */
        box-shadow: none; /* optional */
        }


        #messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: linear-gradient(to bottom, var(--background, #f9f5ea) 0%, var(--background-light, #ffffff) 100%);
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* Custom scrollbar */
        #messages::-webkit-scrollbar {
            width: 8px;
        }

        #messages::-webkit-scrollbar-track {
            background: var(--background, #f9f5ea);
            border-radius: 4px;
        }

        #messages::-webkit-scrollbar-thumb {
            background: var(--powder-blue, #99b7c6);
            border-radius: 4px;
        }

        #messages::-webkit-scrollbar-thumb:hover {
            background: var(--lavender, #978ec4);
        }

        .message {
            margin-bottom: 0;
            padding: 14px 18px;
            border-radius: 18px;
            max-width: 75%;
            font-size: 0.95rem;
            line-height: 1.5;
            word-wrap: break-word;
            animation: fadeIn 0.3s ease-in;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        /* Formatting within messages */
        .message p {
            margin: 0 0 12px 0;
        }

        .message p:last-child {
            margin-bottom: 0;
        }

        .message ul {
            margin: 8px 0;
            padding-left: 20px;
        }

        .message li {
            margin: 6px 0;
            line-height: 1.6;
        }

        .message strong {
            font-weight: 600;
            color: inherit;
        }

        .message em {
            font-style: italic;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .user {
            background: var(--powder-blue, #99b7c6);
            color: white;
            align-self: flex-end;
            margin-left: auto;
            border-bottom-right-radius: 4px;
        }

        .bot {
            background: var(--background-light, #ffffff);
            color: var(--text-dark, #3a3f3b);
            align-self: flex-start;
            border: 1px solid var(--border-color, #e8ddd5);
            border-bottom-left-radius: 4px;
        }

        .loading {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 0;
        }

        .loading.message {
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 12px 0;
        }

        .loading img {
            width: 64px;
            height: 64px;
            object-fit: contain;
            animation: pulse 1.5s ease-in-out infinite;
        }

        .loading span {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--primary, #ce325b);
            animation: bounce 1.4s infinite ease-in-out both;
        }

        .loading span:nth-child(2) { animation-delay: -0.32s; }
        .loading span:nth-child(3) { animation-delay: -0.16s; }

        @keyframes pulse {
            0%, 100% {
                opacity: 0.4;
                transform: scale(0.95);
            }
            50% {
                opacity: 1;
                transform: scale(1.05);
            }
        }

        @keyframes bounce {
            0%, 80%, 100% {
                transform: scale(0);
            }
            40% {
                transform: scale(1);
            }
        }

        #input-area {
            display: flex;
            padding: 16px;
            background: var(--background-light, #ffffff);
            border-top: 2px solid var(--border-color, #e8ddd5);
            gap: 12px;
        }

        #input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid var(--border-color, #e8ddd5);
            border-radius: 24px;
            font-size: 1rem;
            font-family: var(--font-body, 'Montserrat', sans-serif);
            outline: none;
            transition: all 0.3s ease;
            background: var(--background, #f9f5ea);
        }

        #input:focus {
            border-color: var(--powder-blue, #99b7c6);
            background: var(--background-light, #ffffff);
            box-shadow: 0 0 0 3px rgba(153, 183, 198, 0.15);
            }

        #input::placeholder {
            color: var(--text-light, #8a8f8b);
        }

        #send {
            padding: 12px 28px;
            border-radius: 24px;
            cursor: pointer;
            background: var(--lavender, #978ec4);
            color: white;
            border: none;
            font-weight: 600;
            font-size: 1rem;
            font-family: var(--font-body, 'Montserrat', sans-serif);
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(151, 142, 196, 0.3);
        }

        #send:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(151, 142, 196, 0.4);
            background: #8577b8;
        }

        #send:active {
            transform: translateY(0);
        }

        #send:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Empty state message */
        .empty-state {
            text-align: center;
            color: var(--text-light, #8a8f8b);
            padding: 40px 20px;
            font-style: italic;
        }