@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
  --eco-cream: #faf8f1;
  --eco-surface: #f5f3ea;
  --eco-card: #fffef9;
  --eco-forest: #264f3c;
  --eco-forest-dark: #17372a;
  --eco-moss: #397253;
  --eco-leaf: #54a96f;
  --eco-sage: #cfe3d3;
  --eco-amber: #f4aa2b;
  --eco-ink: #183126;
  --eco-muted: #688074;
  --eco-border: #dce7de;
  --eco-danger: #c75050;
  --eco-shadow: 0 16px 45px rgba(32, 71, 53, 0.09);
  --eco-shadow-soft: 0 8px 24px rgba(32, 71, 53, 0.07);
}

.duty-selection-page,
.duty-selection-page button,
.duty-selection-page input,
.duty-selection-page table {
  font-family: "Inter", "Segoe UI", sans-serif;
}

.duty-selection-page {
  color: var(--eco-ink);
  background: var(--eco-cream);
}

.duty-selection-page .sidebar {
  background: linear-gradient(180deg, var(--eco-forest) 0%, var(--eco-forest-dark) 100%) !important;
  box-shadow: 12px 0 34px rgba(24, 49, 38, 0.12);
}

.duty-selection-page .sidebar-logo {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.duty-selection-page .sidebar-menu {
  height: calc(100vh - 72px);
  margin: 0;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.duty-selection-page .sidebar-menu .nav-item {
  margin: 0 !important;
}

.duty-selection-page .sidebar-menu .nav-item:last-child {
  margin-top: auto !important;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.duty-selection-page .sidebar-menu .sidebar-link {
  min-height: 46px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.duty-selection-page .sidebar-menu .sidebar-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.09) !important;
  transform: translateX(2px);
}

.duty-selection-page .sidebar-menu .nav-item.active .sidebar-link {
  color: var(--eco-forest-dark) !important;
  background: var(--eco-amber) !important;
  box-shadow: 0 8px 18px rgba(16, 43, 30, 0.2);
}

.duty-selection-page .sidebar-menu .icon-holder {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.duty-selection-page .sidebar-menu .icon-holder i,
.duty-selection-page .sidebar-menu .title {
  color: inherit !important;
}

.duty-selection-page .sidebar-menu .nav-item.active .icon-holder {
  background: rgba(255, 255, 255, 0.38);
}

.duty-selection-page .sidebar a,
.duty-selection-page .sidebar i,
.duty-selection-page .sidebar span {
  color: rgba(255, 255, 255, 0.84);
}

.duty-selection-page .sidebar a:hover,
.duty-selection-page .sidebar li.active > a {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px;
}

.duty-selection-page .page-container {
  background: var(--eco-cream);
}

.duty-selection-page .header.navbar {
  min-height: 74px;
  background: rgba(250, 248, 241, 0.92) !important;
  border-bottom: 1px solid var(--eco-border);
  box-shadow: none !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.duty-selection-page .header-container {
  padding-left: 28px;
  padding-right: 30px;
}

.duty-selection-page .sidebar-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--eco-sage);
  color: var(--eco-forest) !important;
  transition: transform 180ms ease, background 180ms ease;
}

.duty-selection-page .sidebar-toggle:hover {
  background: #bfd9c5;
  transform: translateY(-1px);
}

.eco-user-avatar,
.eco-profile-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--eco-forest);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
}

.eco-user-avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
  box-shadow: 0 0 0 4px rgba(38, 79, 60, 0.1);
}

.eco-user-name {
  color: var(--eco-ink) !important;
  font-weight: 650;
}

.duty-selection-page .main-content {
  min-height: calc(100vh - 74px);
  padding: 34px !important;
  background:
    radial-gradient(circle at 94% 4%, rgba(207, 227, 211, 0.55), transparent 22rem),
    var(--eco-cream) !important;
}

.eco-page-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  animation: eco-rise 420ms ease both;
}

.eco-hero {
  position: relative;
  min-height: 230px;
  padding: 42px 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-radius: 24px;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(18, 57, 41, 0.98), rgba(49, 113, 78, 0.94)),
    var(--eco-forest);
  box-shadow: 0 22px 48px rgba(24, 64, 45, 0.18);
}

.eco-hero-copy,
.eco-hero-profile {
  position: relative;
  z-index: 2;
}

.eco-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--eco-amber);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eco-hero h1,
.eco-section-heading h2 {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.eco-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.eco-hero-copy p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.75;
}

.eco-hero-profile {
  width: min(330px, 100%);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.eco-profile-avatar {
  width: 50px;
  height: 50px;
  color: var(--eco-forest-dark);
  background: var(--eco-amber);
  font-size: 18px;
}

.eco-hero-profile strong,
.eco-hero-profile small,
.eco-profile-label {
  display: block;
}

.eco-profile-label {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eco-hero-profile strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 14px;
}

.eco-hero-profile small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.eco-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.eco-orb-one {
  width: 220px;
  height: 220px;
  right: -48px;
  top: -80px;
  background: rgba(244, 170, 43, 0.12);
}

.eco-orb-two {
  width: 130px;
  height: 130px;
  left: 45%;
  bottom: -86px;
  background: rgba(255, 255, 255, 0.05);
}

.eco-stat-grid {
  position: relative;
  z-index: 3;
  width: calc(100% - 48px);
  margin: -28px auto 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.eco-stat-card {
  min-height: 104px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(220, 231, 222, 0.9);
  border-radius: 18px;
  background: rgba(255, 254, 249, 0.96);
  box-shadow: var(--eco-shadow-soft);
}

.eco-stat-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--eco-forest);
  background: var(--eco-sage);
  font-size: 21px;
  font-weight: 800;
}

.eco-stat-required .eco-stat-icon {
  color: #7a4d00;
  background: #ffe7b5;
}

.eco-stat-remaining .eco-stat-icon {
  color: #2f6648;
  background: #dcefe0;
}

.eco-stat-card small,
.eco-stat-card strong {
  display: block;
}

.eco-stat-card small {
  margin-bottom: 3px;
  color: var(--eco-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eco-stat-card strong {
  color: var(--eco-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.eco-selection-card {
  overflow: hidden;
  border: 1px solid var(--eco-border);
  border-radius: 22px;
  background: var(--eco-card);
  box-shadow: var(--eco-shadow);
}

.eco-home-wrap {
  max-width: 980px;
}

.eco-home-welcome,
.eco-subpage-banner {
  position: relative;
  overflow: hidden;
  padding: 38px 40px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(125deg, var(--eco-forest-dark), var(--eco-moss));
  box-shadow: 0 22px 48px rgba(24, 64, 45, 0.18);
}

.eco-home-welcome::after,
.eco-subpage-banner::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -55px;
  top: -90px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(244, 170, 43, 0.1);
}

.eco-home-welcome h1,
.eco-subpage-banner h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.eco-home-welcome p,
.eco-subpage-banner p {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.eco-staff-chip {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 8px 12px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.eco-home-actions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.eco-action-card {
  min-height: 126px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--eco-border);
  border-radius: 20px;
  color: var(--eco-ink) !important;
  background: var(--eco-card);
  box-shadow: var(--eco-shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.eco-action-card:hover {
  border-color: #bed7c3;
  color: var(--eco-ink) !important;
  box-shadow: var(--eco-shadow);
  transform: translateY(-3px);
}

.eco-action-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--eco-forest);
  background: var(--eco-sage);
  font-size: 20px;
  font-weight: 800;
}

.eco-action-primary .eco-action-icon {
  color: #7a4d00;
  background: #ffe7b5;
}

.eco-action-card strong,
.eco-action-card small {
  display: block;
}

.eco-action-card strong {
  margin-bottom: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
}

.eco-action-card small {
  color: var(--eco-muted);
  font-size: 12px;
  line-height: 1.55;
}

.eco-action-card b {
  color: var(--eco-moss);
  font-size: 20px;
}

.eco-subpage-banner {
  min-height: 190px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.eco-back-link {
  position: relative;
  z-index: 1;
  padding: 11px 15px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.eco-back-link:hover {
  color: var(--eco-forest-dark) !important;
  background: var(--eco-amber);
}

.eco-empty-state {
  padding: 64px 24px;
  text-align: center;
}

.eco-empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--eco-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
}

.eco-empty-state p {
  margin: 0 0 20px;
  color: var(--eco-muted);
}

.eco-empty-state a {
  padding: 10px 15px;
  display: inline-block;
  border-radius: 11px;
  color: #fff !important;
  background: var(--eco-forest);
  font-size: 12px;
  font-weight: 700;
}

.eco-section-heading {
  padding: 28px 30px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--eco-border);
}

.eco-section-heading h2 {
  margin: 0 0 7px;
  color: var(--eco-ink);
  font-size: 25px;
}

.eco-section-heading p {
  margin: 0;
  color: var(--eco-muted);
  font-size: 13px;
}

.eco-live-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #c8e2ce;
  border-radius: 999px;
  color: var(--eco-moss);
  background: #edf7ef;
  font-size: 11px;
  font-weight: 700;
}

.eco-live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eco-leaf);
  box-shadow: 0 0 0 4px rgba(84, 169, 111, 0.12);
}

.eco-table-wrap {
  overflow-x: auto;
}

.duty-selection-page .eco-committee-table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse;
  background: transparent;
}

.duty-selection-page .eco-committee-table thead th {
  padding: 13px 30px;
  border: 0 !important;
  border-bottom: 1px solid var(--eco-border) !important;
  color: var(--eco-muted);
  background: #f5f7f1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.duty-selection-page .eco-committee-table tbody td {
  padding: 19px 30px;
  vertical-align: middle;
  border: 0 !important;
  border-bottom: 1px solid #e8eee8 !important;
  color: var(--eco-ink);
  background: transparent !important;
}

.duty-selection-page .eco-committee-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.duty-selection-page .eco-committee-table tbody tr {
  transition: background 180ms ease;
}

.duty-selection-page .eco-committee-table tbody tr:hover {
  background: #f8faf5 !important;
}

.eco-committee-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.eco-leaf-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 9px 2px 9px 2px;
  background: var(--eco-leaf);
  transform: rotate(-12deg);
  box-shadow: 0 0 0 5px rgba(84, 169, 111, 0.1);
}

.duty-selection-page .eco-choice-button {
  min-width: 152px;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0 !important;
  border-radius: 12px;
  color: #fff !important;
  background: var(--eco-forest) !important;
  box-shadow: 0 8px 18px rgba(38, 79, 60, 0.16);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.duty-selection-page .eco-choice-button:hover:not(:disabled) {
  background: var(--eco-moss) !important;
  box-shadow: 0 11px 22px rgba(38, 79, 60, 0.22);
  transform: translateY(-2px);
}

.duty-selection-page .eco-choice-selected {
  color: var(--eco-forest) !important;
  background: var(--eco-sage) !important;
  box-shadow: none;
}

.duty-selection-page .eco-choice-selected:hover:not(:disabled) {
  color: #fff !important;
  background: var(--eco-danger) !important;
}

.duty-selection-page .eco-choice-selected:hover:not(:disabled)::after {
  content: "  · click to remove";
  font-size: 9px;
}

.duty-selection-page .eco-choice-button:disabled {
  cursor: not-allowed;
  color: #829287 !important;
  background: #e8eee8 !important;
  box-shadow: none;
  opacity: 1;
}

.eco-slot-count {
  min-width: 42px;
  height: 38px;
  padding: 0 11px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--eco-forest);
  background: #e8f2e9;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.eco-slot-context {
  margin-top: 5px;
  display: block;
  color: var(--eco-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eco-full-badge {
  padding: 7px 10px;
  display: inline-block;
  border-radius: 999px;
  color: #9a4a42;
  background: #fae9e6;
  font-size: 11px;
  font-weight: 700;
}

.duty-selection-page #loader {
  background: var(--eco-cream);
}

.duty-selection-page .spinner {
  border-top-color: var(--eco-forest) !important;
}

.duty-selection-page .modal-content {
  overflow: hidden;
  border: 1px solid var(--eco-border);
  border-radius: 18px;
  box-shadow: var(--eco-shadow);
}

.duty-selection-page .modal-header,
.duty-selection-page .modal-footer {
  border-color: var(--eco-border);
  background: var(--eco-surface);
}

.duty-selection-page .modal-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--eco-ink);
  font-weight: 800;
}

@keyframes eco-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .duty-selection-page .main-content {
    padding: 24px !important;
  }

  .eco-hero {
    padding: 34px;
    align-items: flex-start;
    flex-direction: column;
  }

  .eco-hero-profile {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .duty-selection-page .main-content {
    padding: 16px !important;
  }

  .duty-selection-page .header-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .eco-user-name {
    display: none;
  }

  .eco-hero {
    min-height: 0;
    padding: 28px 24px 48px;
    border-radius: 20px;
  }

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

  .eco-stat-grid {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .eco-home-actions {
    grid-template-columns: 1fr;
  }

  .eco-home-welcome,
  .eco-subpage-banner {
    padding: 28px 24px;
  }

  .eco-subpage-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .eco-stat-card {
    min-height: 82px;
    padding: 15px 17px;
  }

  .eco-section-heading {
    padding: 22px 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .duty-selection-page .eco-committee-table {
    min-width: 680px;
  }

  .duty-selection-page .eco-committee-table thead th,
  .duty-selection-page .eco-committee-table tbody td {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eco-page-wrap,
  .duty-selection-page .eco-choice-button,
  .duty-selection-page .sidebar-toggle {
    animation: none;
    transition: none;
  }
}

/* Sign-in */
.eco-login-page,
.eco-login-page button,
.eco-login-page input {
  font-family: "Inter", "Segoe UI", sans-serif;
}

.eco-login-page {
  min-height: 100vh;
  margin: 0;
  color: var(--eco-ink);
  background:
    radial-gradient(circle at 85% 10%, rgba(207, 227, 211, 0.55), transparent 24rem),
    var(--eco-cream);
}

.eco-login-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 44px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: stretch;
}

.eco-login-story {
  position: relative;
  min-height: 660px;
  padding: 42px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  border-radius: 28px 0 0 28px;
  background:
    linear-gradient(145deg, rgba(18, 55, 41, 0.92), rgba(38, 79, 60, 0.78)),
    url("../images/convocation.jpg") center / cover no-repeat;
  box-shadow: 0 28px 70px rgba(23, 55, 42, 0.18);
}

.eco-login-story::before,
.eco-login-story::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.eco-login-story::before {
  width: 330px;
  height: 330px;
  right: -120px;
  top: -135px;
  background: rgba(244, 170, 43, 0.12);
}

.eco-login-story::after {
  width: 210px;
  height: 210px;
  left: -80px;
  bottom: 90px;
  background: rgba(255, 255, 255, 0.04);
}

.eco-login-brand,
.eco-login-story-copy,
.eco-login-security-note {
  position: relative;
  z-index: 1;
}

.eco-login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.eco-login-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--eco-forest-dark);
  background: var(--eco-amber);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
}

.eco-login-brand strong,
.eco-login-brand small {
  display: block;
}

.eco-login-brand strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.eco-login-brand small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.eco-login-story-copy {
  max-width: 530px;
  margin: auto 0;
}

.eco-login-story-copy h1 {
  margin: 0 0 18px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.eco-login-story-copy p {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.75;
}

.eco-login-security-note {
  width: fit-content;
  max-width: 400px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.eco-login-security-note > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: var(--eco-forest-dark);
  background: var(--eco-amber);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.eco-login-security-note p,
.eco-login-security-note strong {
  display: block;
  margin: 0;
}

.eco-login-security-note p {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  line-height: 1.45;
}

.eco-login-security-note strong {
  margin-bottom: 2px;
  color: #fff;
  font-size: 12px;
}

.eco-login-form-panel {
  padding: 54px 58px;
  display: flex;
  align-items: center;
  border: 1px solid var(--eco-border);
  border-left: 0;
  border-radius: 0 28px 28px 0;
  background: rgba(255, 254, 249, 0.96);
  box-shadow: 22px 28px 70px rgba(23, 55, 42, 0.08);
}

.eco-login-card {
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
}

.eco-login-logo {
  width: 205px;
  margin-bottom: 40px;
  display: block;
}

.eco-login-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.eco-login-heading {
  margin-bottom: 29px;
}

.eco-login-heading h2,
.eco-password-card h2 {
  margin: 0 0 9px;
  color: var(--eco-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.eco-login-heading p,
.eco-password-card-copy > p {
  margin: 0;
  color: var(--eco-muted);
  font-size: 13px;
  line-height: 1.65;
}

.eco-form-field {
  margin-bottom: 19px;
}

.eco-form-field label,
.eco-field-label-row {
  color: var(--eco-ink);
  font-size: 12px;
  font-weight: 700;
}

.eco-form-field label {
  margin-bottom: 8px;
  display: block;
}

.eco-form-field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  box-sizing: border-box;
  border: 1px solid #d4e1d6;
  border-radius: 12px;
  outline: 0;
  color: var(--eco-ink);
  background: #fff;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.eco-form-field input::placeholder {
  color: #9aaba1;
}

.eco-form-field input:focus {
  border-color: var(--eco-leaf);
  background: #fffefb;
  box-shadow: 0 0 0 4px rgba(84, 169, 111, 0.12);
}

.eco-password-input {
  position: relative;
}

.eco-password-input input {
  padding-right: 68px;
}

.eco-password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  color: var(--eco-moss);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  transform: translateY(-50%);
  cursor: pointer;
}

.eco-password-toggle:hover,
.eco-password-toggle:focus {
  background: var(--eco-sage);
  outline: 0;
}

.eco-primary-button {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: var(--eco-forest);
  box-shadow: 0 12px 24px rgba(38, 79, 60, 0.18);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.eco-primary-button:hover:not(:disabled) {
  background: var(--eco-moss);
  box-shadow: 0 15px 28px rgba(38, 79, 60, 0.24);
  transform: translateY(-2px);
}

.eco-primary-button:focus-visible {
  outline: 3px solid rgba(244, 170, 43, 0.48);
  outline-offset: 3px;
}

.eco-primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.eco-primary-button b {
  font-size: 18px;
}

.eco-form-message {
  display: none;
  margin: 0 0 18px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.55;
}

.eco-form-message:not(:empty) {
  display: block;
}

.eco-form-message-error {
  border: 1px solid #edcfca;
  color: #93443d;
  background: #fdf0ed;
}

.eco-form-message-success {
  border: 1px solid #c8e2ce;
  color: #2f6848;
  background: #edf7ef;
}

.eco-form-message-info {
  display: block;
  border: 1px solid #ead8b0;
  color: #78520e;
  background: #fff7e7;
}

.eco-login-help {
  margin: 20px 0 0;
  color: var(--eco-muted);
  font-size: 10px;
  text-align: center;
}

.eco-login-footer {
  min-height: 60px;
  padding: 0 24px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eco-muted);
  font-size: 10px;
  text-align: center;
}

/* Change password */
.eco-password-page {
  max-width: 1020px;
}

.eco-security-badge {
  position: relative;
  z-index: 1;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 700;
}

.eco-security-badge b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--eco-forest-dark);
  background: var(--eco-amber);
  font-size: 10px;
}

.eco-password-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1.18fr);
  gap: 54px;
  padding: 38px;
  border: 1px solid var(--eco-border);
  border-radius: 22px;
  background: var(--eco-card);
  box-shadow: var(--eco-shadow);
}

.eco-password-card-copy {
  padding: 8px 5px;
}

.eco-password-card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 25px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--eco-forest);
  background: var(--eco-sage);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.eco-password-tips {
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}

.eco-password-tips li {
  position: relative;
  margin-bottom: 13px;
  padding-left: 24px;
  color: var(--eco-muted);
  font-size: 11px;
  line-height: 1.5;
}

.eco-password-tips li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--eco-leaf);
  font-weight: 800;
}

.eco-password-form {
  padding: 29px;
  border: 1px solid var(--eco-border);
  border-radius: 18px;
  background: #f8faf5;
}

.eco-password-strength {
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8df;
}

.eco-password-strength span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--eco-danger);
  transition: width 180ms ease, background 180ms ease;
}

.eco-password-strength .strength-2 { background: var(--eco-amber); }
.eco-password-strength .strength-3,
.eco-password-strength .strength-4 { background: var(--eco-leaf); }

.eco-field-help {
  margin-top: 7px;
  display: block;
  color: var(--eco-muted);
  font-size: 10px;
}

@media (max-width: 920px) {
  .eco-login-shell {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .eco-login-story,
  .eco-login-form-panel {
    padding: 36px;
  }

  .eco-login-story-copy h1 {
    font-size: 40px;
  }

  .eco-password-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 720px) {
  .eco-login-shell {
    width: min(100% - 28px, 520px);
    min-height: 0;
    padding-top: 14px;
    grid-template-columns: 1fr;
  }

  .eco-login-story {
    min-height: 350px;
    padding: 28px;
    border-radius: 22px 22px 0 0;
  }

  .eco-login-story-copy {
    margin: 56px 0;
  }

  .eco-login-story-copy h1 {
    font-size: 34px;
  }

  .eco-login-security-note {
    max-width: 100%;
  }

  .eco-login-form-panel {
    padding: 36px 28px;
    border-left: 1px solid var(--eco-border);
    border-top: 0;
    border-radius: 0 0 22px 22px;
  }

  .eco-login-logo {
    width: 180px;
    margin-bottom: 32px;
  }

  .eco-login-footer {
    padding-bottom: 18px;
  }

  .eco-password-card {
    padding: 22px;
    border-radius: 18px;
  }

  .eco-password-form {
    padding: 22px;
  }

  .eco-security-badge {
    align-self: flex-start;
  }
}

@media (max-width: 430px) {
  .eco-login-story {
    min-height: 320px;
    padding: 24px;
  }

  .eco-login-brand small,
  .eco-login-security-note p {
    font-size: 9px;
  }

  .eco-login-form-panel {
    padding: 32px 22px;
  }

  .eco-password-card,
  .eco-password-form {
    padding: 18px;
  }
}

/* Portal opening countdown */
.eco-portal-countdown {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  margin: 26px 0 20px;
  padding: 17px 18px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(15, 43, 31, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.eco-countdown-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eco-countdown-kicker,
.eco-countdown-heading strong {
  display: block;
}

.eco-countdown-kicker {
  margin-bottom: 4px;
  color: var(--eco-amber);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eco-countdown-heading strong {
  color: #fff;
  font-size: 12px;
}

.eco-countdown-status {
  padding: 7px 10px;
  flex: 0 0 auto;
  border: 1px solid rgba(244, 170, 43, 0.32);
  border-radius: 999px;
  color: #ffd991;
  background: rgba(244, 170, 43, 0.12);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.eco-countdown-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.eco-countdown-grid > div {
  padding: 10px 6px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.eco-countdown-grid strong,
.eco-countdown-grid small {
  display: block;
}

.eco-countdown-grid strong {
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  line-height: 1.05;
}

.eco-countdown-grid small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eco-portal-countdown.is-open .eco-countdown-status {
  border-color: rgba(151, 222, 169, 0.25);
  color: #bce8c7;
  background: rgba(84, 169, 111, 0.14);
}

/* Admin dashboard */
.eco-admin-wrap {
  max-width: 1180px;
}

.eco-admin-hero {
  position: relative;
  min-height: 215px;
  padding: 38px 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(244, 170, 43, 0.18), transparent 15rem),
    linear-gradient(125deg, var(--eco-forest-dark), var(--eco-moss));
  box-shadow: 0 22px 48px rgba(24, 64, 45, 0.18);
}

.eco-admin-hero > div:first-child {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.eco-admin-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.eco-admin-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.eco-admin-portal-state {
  position: relative;
  z-index: 1;
  min-width: 190px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.eco-admin-state-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--eco-amber);
  box-shadow: 0 0 0 5px rgba(244, 170, 43, 0.13);
}

.eco-admin-portal-state.is-open .eco-admin-state-dot {
  background: #8ad29c;
  box-shadow: 0 0 0 5px rgba(138, 210, 156, 0.13);
}

.eco-admin-portal-state small,
.eco-admin-portal-state strong {
  display: block;
}

.eco-admin-portal-state small {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eco-admin-portal-state strong {
  color: #fff;
  font-size: 13px;
}

.eco-admin-alert {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.eco-admin-alert-success {
  border: 1px solid #c8e2ce;
  color: #2f6848;
  background: #edf7ef;
}

.eco-admin-alert-error {
  border: 1px solid #edcfca;
  color: #93443d;
  background: #fdf0ed;
}

.eco-admin-stat-grid {
  width: calc(100% - 48px);
  margin: -25px auto 25px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.eco-admin-stat-grid article {
  min-height: 106px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 14px;
  border: 1px solid var(--eco-border);
  border-radius: 17px;
  background: rgba(255, 254, 249, 0.97);
  box-shadow: var(--eco-shadow-soft);
}

.eco-admin-stat-grid span,
.eco-admin-stat-grid small {
  color: var(--eco-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eco-admin-stat-grid strong {
  grid-row: span 2;
  color: var(--eco-forest);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 31px;
}

.eco-admin-stat-grid small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.eco-admin-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.eco-admin-card {
  padding: 30px;
  border: 1px solid var(--eco-border);
  border-radius: 21px;
  background: var(--eco-card);
  box-shadow: var(--eco-shadow-soft);
}

.eco-admin-card-heading {
  margin-bottom: 23px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eco-admin-card-heading h2 {
  margin: 0 0 7px;
  color: var(--eco-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.eco-admin-card-heading p {
  margin: 0;
  color: var(--eco-muted);
  font-size: 11px;
  line-height: 1.6;
}

.eco-admin-clock {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: var(--eco-forest);
  background: var(--eco-sage);
  font-size: 10px;
  font-weight: 800;
}

.eco-current-schedule {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid #dbe8dd;
  border-radius: 15px;
  background: #f4f8f1;
}

.eco-current-schedule small,
.eco-current-schedule strong,
.eco-current-schedule span {
  display: block;
}

.eco-current-schedule small {
  margin-bottom: 5px;
  color: var(--eco-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eco-current-schedule strong {
  margin-bottom: 4px;
  color: var(--eco-ink);
  font-size: 14px;
}

.eco-current-schedule span {
  color: var(--eco-muted);
  font-size: 10px;
}

.eco-schedule-form .eco-form-field input {
  background: #fff;
}

.eco-schedule-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.eco-secondary-button {
  min-height: 52px;
  padding: 12px 17px;
  border: 1px solid var(--eco-border);
  border-radius: 13px;
  color: var(--eco-forest);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.eco-secondary-button:hover {
  border-color: #bcd4c1;
  background: #f2f8f2;
}

.eco-admin-link-list {
  display: grid;
  gap: 9px;
}

.eco-admin-link-list a {
  padding: 13px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--eco-ink) !important;
  background: #f7f9f4;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.eco-admin-link-list a:hover {
  border-color: var(--eco-border);
  background: #fff;
  transform: translateX(2px);
}

.eco-admin-link-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--eco-forest);
  background: var(--eco-sage);
  font-size: 13px;
  font-weight: 800;
}

.eco-admin-link-list strong,
.eco-admin-link-list small {
  display: block;
}

.eco-admin-link-list strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.eco-admin-link-list small {
  color: var(--eco-muted);
  font-size: 9px;
}

.eco-admin-link-list b {
  color: var(--eco-moss);
}

.eco-nav-label {
  margin: 12px 12px 4px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eco-admin-sidebar-menu.sidebar-menu {
  gap: 3px;
}

@media (max-width: 980px) {
  .eco-admin-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .eco-admin-hero {
    padding: 30px 25px 48px;
    align-items: flex-start;
    flex-direction: column;
  }

  .eco-admin-portal-state {
    width: 100%;
    box-sizing: border-box;
  }

  .eco-admin-stat-grid {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
  }

  .eco-admin-card {
    padding: 22px;
  }

  .eco-schedule-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .eco-countdown-grid strong {
    font-size: 18px;
  }

  .eco-countdown-grid small {
    font-size: 7px;
  }
}
