/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
body.admin-body {
  background:
    radial-gradient(circle at top left, rgba(225, 241, 255, 0.9), transparent 28%),
    linear-gradient(180deg, #f4f8fb 0%, #eef3f7 100%);
  color: #203043;
  font-family: "Public Sans", sans-serif;
  min-height: 100vh;
}

.admin-navbar {
  background: linear-gradient(120deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
}

.admin-shell {
  --admin-header-height: 4.75rem;
  --admin-footer-height: 3rem;
  display: block;
  min-height: 100vh;
  height: 100vh;
  padding-top: var(--admin-header-height);
  padding-bottom: var(--admin-footer-height);
  width: 100vw;
  overflow: hidden;
}

.admin-header {
  align-items: center;
  background: linear-gradient(120deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--admin-header-height);
  width: 100%;
  z-index: 1100;
}

.admin-header__brand {
  color: #fff;
}

.admin-header__brand:hover {
  color: #fff;
}

.admin-header__brand-name {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.admin-header__subtitle,
.admin-header__user {
  color: rgba(255, 255, 255, 0.82);
}

.admin-middle {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  height: calc(100vh - var(--admin-header-height) - var(--admin-footer-height));
  min-height: 0;
  overflow: hidden;
}

.admin-sidebar {
  background: linear-gradient(180deg, rgba(24, 58, 90, 0.99), rgba(18, 42, 65, 0.99));
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  width: 18rem;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

.admin-sidebar__sections {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  overflow: auto;
  padding-right: 0.1rem;
}

.nav-section {
  border-radius: 0.95rem;
  overflow: hidden;
}

.nav-section__summary {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.95rem;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  list-style: none;
  padding: 0.8rem 0.9rem;
  user-select: none;
}

.nav-section__summary::-webkit-details-marker {
  display: none;
}

.nav-section__summary::after {
  content: "▾";
  margin-left: auto;
  opacity: 0.8;
}

.nav-section[open] > .nav-section__summary::after {
  content: "▴";
}

.nav-section__summary.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.nav-section__summary-label {
  align-items: center;
  display: inline-flex;
}

.nav-section__items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.45rem 0.25rem 0.1rem;
}

.nav-section__item {
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.72rem 0.85rem;
  text-decoration: none;
}

.nav-section__item:hover,
.nav-section__item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-section__item.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.admin-sidebar__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.admin-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.admin-footer {
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(24, 58, 90, 0.08);
  color: #5b6d81;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1.25rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--admin-footer-height);
  width: 100%;
  z-index: 1100;
}

@media (max-width: 991.98px) {
  .admin-shell {
    padding-top: 4.25rem;
    padding-bottom: 3.25rem;
  }

  .admin-middle {
    grid-template-columns: 1fr;
    height: calc(100vh - 4.25rem - 3.25rem);
  }

  .admin-sidebar {
    display: none;
  }

  .admin-header {
    padding: 0.85rem 1rem;
  }

  .admin-main {
    padding-inline: 1rem;
  }

  .admin-footer {
    padding-inline: 1rem;
  }
}

.page-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(24, 58, 90, 0.08);
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(27, 55, 87, 0.08);
}

.stat-card {
  border-radius: 1rem;
  color: #fff;
  overflow: hidden;
}

.stat-card h2 {
  font-size: 2rem;
  margin-bottom: 0;
}

.stat-card-blue { background: linear-gradient(135deg, var(--brand-secondary), #3678aa); }
.stat-card-green { background: linear-gradient(135deg, #1f7a5b, #2da675); }
.stat-card-orange { background: linear-gradient(135deg, #a65d1a, #d88828); }
.stat-card-dark { background: linear-gradient(135deg, var(--brand-primary), #42566e); }

.table thead th {
  border-bottom-width: 1px;
  color: #4d6178;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.login-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(21, 48, 73, 0.14);
  max-width: 420px;
  width: 100%;
}

.brand-logo {
  border-radius: 0.75rem;
  height: 2rem;
  object-fit: cover;
  width: 2rem;
}

.brand-logo-large {
  height: 3rem;
  width: 3rem;
}

.destination-preview-card {
  border-radius: 1rem;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.destination-preview-image {
  aspect-ratio: 16 / 10;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.destination-preview-placeholder {
  align-items: center;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at top left, rgba(54, 120, 170, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(24, 58, 90, 0.06), rgba(33, 87, 127, 0.12));
  border: 1px dashed rgba(24, 58, 90, 0.2);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.destination-preview-eyebrow {
  color: #4d6178;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.settings-preview-card {
  background: rgba(244, 248, 251, 0.8);
  border: 1px solid rgba(24, 58, 90, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
}

.settings-color-sample {
  border-radius: 1rem;
  height: 6rem;
}

.calendar-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekday {
  color: #4d6178;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 58, 90, 0.08);
  border-radius: 1rem;
  min-height: 10rem;
  padding: 0.85rem;
}

.calendar-day-card--outside {
  opacity: 0.45;
}

.calendar-day-card--today {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 2px rgba(54, 120, 170, 0.12);
}

.calendar-day-number {
  font-size: 1rem;
  font-weight: 700;
}

.calendar-trip-chip {
  background: linear-gradient(135deg, rgba(54, 120, 170, 0.1), rgba(24, 58, 90, 0.08));
  border: 1px solid rgba(54, 120, 170, 0.12);
  border-left-width: 0.35rem;
  border-radius: 0.8rem;
  color: #1f3247;
  display: block;
  padding: 0.65rem 0.7rem;
  text-decoration: none;
}

.calendar-trip-chip:hover {
  background: linear-gradient(135deg, rgba(54, 120, 170, 0.16), rgba(24, 58, 90, 0.12));
  color: #1f3247;
}

.calendar-trip-chip--draft { border-left-color: #6c757d; }
.calendar-trip-chip--planned { border-left-color: #0dcaf0; }
.calendar-trip-chip--confirmed { border-left-color: #198754; }
.calendar-trip-chip--executed { border-left-color: #0d6efd; }
.calendar-trip-chip--suspended { border-left-color: #ffc107; }
.calendar-trip-chip--rescheduled { border-left-color: #343a40; }
.calendar-trip-chip--cancelled { border-left-color: #dc3545; }

.calendar-sidebar {
  position: sticky;
  max-height: calc(100vh - var(--admin-header-height) - var(--admin-footer-height) - 2rem);
  overflow: auto;
  top: calc(var(--admin-header-height) + 1rem);
}

.calendar-sidebar__section {
  display: grid;
  gap: 0.75rem;
}

.calendar-trip-list {
  display: grid;
  gap: 0.65rem;
}

.calendar-trip-list-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(24, 58, 90, 0.08);
  border-radius: 0.9rem;
  color: #203043;
  display: block;
  padding: 0.8rem 0.85rem;
  text-decoration: none;
}

.calendar-trip-list-item:hover,
.calendar-trip-list-item:focus,
.calendar-trip-list-item.is-active {
  background: rgba(24, 58, 90, 0.08);
  color: #203043;
  border-color: rgba(24, 58, 90, 0.16);
}

.pagination .page-link {
  color: var(--brand-primary);
}

.pagination .page-item.active .page-link {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  color: #8a98a8;
}

.gantt-board {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.gantt-board-wrapper {
  max-height: calc(100vh - 17rem);
  overflow: auto;
  padding-right: 0.25rem;
}

.gantt-board__header,
.gantt-board__row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: var(--gantt-columns);
  width: 100%;
  min-width: 0;
}

.gantt-board__header-cell,
.gantt-board__school-cell,
.gantt-board__cell {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 58, 90, 0.08);
  border-radius: 1rem;
  padding: 0.75rem;
  min-width: 0;
  overflow: hidden;
}

.gantt-board__header-cell {
  background: rgba(21, 48, 73, 0.04);
}

.gantt-board__header-cell--sticky,
.gantt-board__cell--sticky {
  position: sticky;
  left: 0;
  z-index: 2;
}

.gantt-board__school-cell {
  align-self: stretch;
}

.gantt-board__empty {
  align-items: center;
  color: #6b7c90;
  display: flex;
  font-size: 0.9rem;
  height: 100%;
  justify-content: center;
  min-height: 6rem;
}

.gantt-trip-card {
  background: linear-gradient(135deg, rgba(54, 120, 170, 0.1), rgba(24, 58, 90, 0.08));
  border: 1px solid rgba(54, 120, 170, 0.12);
  border-left-width: 0.35rem;
  border-radius: 0.85rem;
  color: #1f3247;
  display: grid;
  gap: 0.15rem;
  font-size: 0.84rem;
  line-height: 1.2;
  padding: 0.6rem 0.65rem;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
}

.gantt-board__header-cell {
  position: sticky;
  top: 0;
  z-index: 3;
}

.gantt-board__school-cell {
  position: sticky;
  left: 0;
  z-index: 2;
}

.gantt-trip-card:hover {
  background: linear-gradient(135deg, rgba(54, 120, 170, 0.16), rgba(24, 58, 90, 0.12));
  color: #1f3247;
}

.gantt-trip-card--draft { border-left-color: #6c757d; }
.gantt-trip-card--planned { border-left-color: #0dcaf0; }
.gantt-trip-card--confirmed { border-left-color: #198754; }
.gantt-trip-card--executed { border-left-color: #0d6efd; }
.gantt-trip-card--suspended { border-left-color: #ffc107; }
.gantt-trip-card--rescheduled { border-left-color: #343a40; }
.gantt-trip-card--cancelled { border-left-color: #dc3545; }

.mail-template-layout {
  align-items: start;
}

.mail-template-tabs {
  border-bottom-color: rgba(24, 58, 90, 0.1);
}

.mail-template-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0.8rem 0.8rem 0 0;
  color: #5c7188;
  font-weight: 700;
  padding-inline: 1rem;
}

.mail-template-tabs .nav-link:hover,
.mail-template-tabs .nav-link:focus {
  background: rgba(24, 58, 90, 0.04);
  color: #1f3d5a;
}

.mail-template-tabs .nav-link.active {
  background: transparent;
  border-bottom-color: var(--brand-secondary);
  color: #163a5a;
}

.mail-template-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: calc(var(--admin-header-height) + 1rem);
}

.mail-template-section-header {
  margin-bottom: 1.25rem;
}

.mail-template-section-eyebrow {
  color: #5d738b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.mail-template-rule-band {
  background:
    radial-gradient(circle at top right, rgba(54, 120, 170, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(24, 58, 90, 0.04), rgba(33, 87, 127, 0.08));
  border: 1px solid rgba(24, 58, 90, 0.08);
  border-radius: 1rem;
  padding: 1rem;
}

.mail-template-note {
  background: rgba(24, 58, 90, 0.08);
  border-radius: 0.9rem;
  color: #28445f;
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
}

.mail-template-note--soft {
  background: rgba(54, 120, 170, 0.08);
}

.mail-template-context-card {
  background: linear-gradient(140deg, rgba(24, 58, 90, 0.06), rgba(54, 120, 170, 0.1));
  border: 1px solid rgba(24, 58, 90, 0.08);
  border-radius: 1rem;
  padding: 1rem;
}

.mail-template-context-label {
  color: #5d738b;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.mail-template-chip-list {
  display: grid;
  gap: 0.6rem;
}

.mail-template-chip {
  align-items: start;
  background: rgba(24, 58, 90, 0.06);
  border: 1px solid rgba(24, 58, 90, 0.08);
  border-radius: 0.9rem;
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
}

.mail-template-chip code {
  color: var(--brand-primary);
  font-size: 0.85rem;
}

.mail-template-chip span {
  color: #52667b;
  font-size: 0.85rem;
}

.mail-template-preview-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(24, 58, 90, 0.08);
  border-radius: 1rem;
  padding: 1rem;
}

.mail-template-primary-btn {
  background: linear-gradient(120deg, #154067, #2f739f);
  border: 0;
  box-shadow: 0 10px 18px rgba(24, 58, 90, 0.18);
}

.mail-template-primary-btn:hover,
.mail-template-primary-btn:focus {
  background: linear-gradient(120deg, #103654, #285f84);
}

.mail-template-preset-btn {
  border-color: rgba(24, 58, 90, 0.18);
  color: #163a5a;
  font-weight: 700;
}

.mail-template-preset-btn:hover,
.mail-template-preset-btn:focus {
  background: rgba(24, 58, 90, 0.08);
  color: #163a5a;
}

@media (max-width: 1199.98px) {
  .mail-template-sidebar {
    position: static;
  }
}
