:root {
  --bg: #f5f1ea;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-strong: #fffdf9;
  --surface-soft: #f1ece4;
  --ink: #083b57;
  --ink-soft: #284d61;
  --muted: #61727d;
  --line: rgba(8, 59, 87, 0.1);
  --navy: #083b57;
  --green: #17995a;
  --green-deep: #127449;
  --red: #e7332a;
  --gold: #d7a54c;
  --shadow-lg: 0 24px 70px rgba(8, 59, 87, 0.12);
  --shadow-md: 0 16px 38px rgba(8, 59, 87, 0.08);
  --shadow-sm: 0 10px 24px rgba(8, 59, 87, 0.06);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1440px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(23, 153, 90, 0.14), transparent 18rem),
    radial-gradient(circle at 88% 8%, rgba(231, 51, 42, 0.12), transparent 15rem),
    radial-gradient(circle at 50% 100%, rgba(8, 59, 87, 0.08), transparent 26rem),
    linear-gradient(180deg, #faf6f0 0%, #f3ede5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(8, 59, 87, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 59, 87, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 80%);
}

.page-shell {
  max-width: var(--container);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.hero-panel {
  position: sticky;
  top: 18px;
  align-self: start;
  min-height: calc(100vh - 36px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 34px 30px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(8, 59, 87, 0.98), rgba(10, 92, 76, 0.96) 72%, rgba(23, 153, 90, 0.92)),
    var(--navy);
  box-shadow: 0 28px 72px rgba(8, 59, 87, 0.28);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-panel::before {
  width: 280px;
  height: 280px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
}

.hero-panel::after {
  width: 240px;
  height: 240px;
  bottom: -110px;
  left: -70px;
  background: radial-gradient(circle, rgba(231, 51, 42, 0.28), transparent 70%);
}

.brand-mark,
.hero-panel .eyebrow,
.hero-panel h1,
.hero-copy,
.hero-list {
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  padding: 7px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 32px rgba(0, 0, 0, 0.16);
}

.brand-name {
  display: block;
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.eyebrow,
.section-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel .eyebrow {
  color: #c9f5db;
}

.hero-panel h1 {
  margin: 0;
  max-width: 9.5ch;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero-copy {
  margin: 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.03rem;
  line-height: 1.9;
}

.hero-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.hero-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #d5f6e3);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.app-panel {
  min-width: 0;
  padding: 8px 4px 8px 0;
}

.topbar,
.profile-strip,
.booking-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 18px;
  padding: 8px 8px 8px 2px;
}

.topbar h2,
.profile-strip h3,
.card h3 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 1.42rem;
  line-height: 1.2;
}

.section-label {
  color: var(--green);
}

.admin-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.insight-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 244, 237, 0.9));
  border: 1px solid rgba(8, 59, 87, 0.08);
  box-shadow: var(--shadow-sm);
}

.insight-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.insight-card strong {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.card,
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
}

.card {
  padding: 22px;
}

.status-banner {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(23, 153, 90, 0.14);
  background: linear-gradient(90deg, rgba(23, 153, 90, 0.12), rgba(255, 255, 255, 0.78));
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.student-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(8, 59, 87, 0.95), rgba(14, 92, 76, 0.92)),
    var(--navy);
  color: #fff;
  box-shadow: 0 24px 56px rgba(8, 59, 87, 0.16);
}

.student-hero-banner h3,
.student-hero-banner .section-label {
  color: #fff;
}

.student-hero-banner .muted {
  color: rgba(255, 255, 255, 0.78);
}

.student-hero-badge {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
  white-space: nowrap;
}

.set-password-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.set-password-point {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(8, 59, 87, 0.06);
  color: var(--navy);
  font-weight: 700;
}

.tab-button,
.ghost-button,
.primary-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    opacity 0.18s ease;
}

.ghost-button,
.tab-button {
  background: rgba(8, 59, 87, 0.06);
  color: var(--navy);
}

.primary-button,
.tab-button.active {
  background: linear-gradient(90deg, var(--green), var(--green-deep));
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 153, 90, 0.2);
}

.danger-button {
  background: linear-gradient(90deg, var(--red), #cb2b22);
  color: #fff;
}

.tab-button:hover,
.ghost-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.form-grid,
.form-grid.compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid.compact {
  margin-bottom: 18px;
}

.list-toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.form-grid label,
.list-toolbar label,
.checkbox-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkbox-label {
  flex-direction: row;
  align-items: center;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(8, 59, 87, 0.08);
  background: rgba(255, 255, 255, 0.64);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(23, 153, 90, 0.45);
  box-shadow: 0 0 0 4px rgba(23, 153, 90, 0.1);
  background: #fff;
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
}

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

.stack {
  display: grid;
  gap: 18px;
}

.dashboard-grid,
.student-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.student-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.stat-card:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 245, 247, 0.9)),
    var(--surface-strong);
}

.stat-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(224, 244, 232, 0.76), rgba(255, 255, 255, 0.92)),
    var(--surface-strong);
}

.stat-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(254, 234, 229, 0.74), rgba(255, 255, 255, 0.92)),
    var(--surface-strong);
}

.stat-card p {
  margin: 0;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.booking-card {
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(8, 59, 87, 0.98), rgba(10, 90, 73, 0.94)),
    var(--navy);
  color: #fff;
  box-shadow: 0 26px 60px rgba(8, 59, 87, 0.22);
}

.booking-card h3,
.booking-card .section-label {
  color: #fff;
}

.booking-copy {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  text-decoration: none;
}

.data-list {
  display: grid;
  gap: 12px;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  border: 1px dashed rgba(8, 59, 87, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 238, 230, 0.78));
}

.empty-state-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(23, 153, 90, 0.16), rgba(8, 59, 87, 0.12));
  position: relative;
}

.empty-state-icon::before,
.empty-state-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--navy);
}

.empty-state-icon::before {
  width: 18px;
  height: 3px;
  top: 14px;
  left: 12px;
}

.empty-state-icon::after {
  width: 12px;
  height: 3px;
  top: 22px;
  left: 12px;
}

.empty-state h4,
.empty-state p {
  margin: 0;
}

.empty-state h4 {
  color: var(--navy);
  font-size: 1.02rem;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.7;
}

.item-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(8, 59, 87, 0.08);
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
  box-shadow: 0 12px 24px rgba(8, 59, 87, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(8, 59, 87, 0.08);
}

.item-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, var(--green), var(--navy));
  opacity: 0.9;
}

.item-card h4,
.item-card p {
  margin: 0;
}

.item-card p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.item-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-highlight {
  color: var(--ink);
  font-weight: 700;
  white-space: pre-line;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.application-actions {
  align-items: center;
}

.status-select {
  min-width: 210px;
}

.small-button {
  padding: 10px 14px;
  font-size: 0.84rem;
}

.pill,
.status-chip,
#studentOverallStatus[data-status] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 800;
}

.pill,
.status-chip-application,
#studentOverallStatus[data-status] {
  background: rgba(8, 59, 87, 0.08);
  color: var(--navy);
}

.status-chip-task {
  background: rgba(23, 153, 90, 0.12);
  color: var(--green);
}

.status-chip-alert,
#studentOverallStatus[data-status="rejected"] {
  background: rgba(231, 51, 42, 0.12);
  color: var(--red);
}

#studentOverallStatus[data-status="accepted"] {
  background: rgba(23, 153, 90, 0.14);
  color: var(--green);
}

#studentOverallStatus[data-status="submitted"],
#studentOverallStatus[data-status="under_review"],
#studentOverallStatus[data-status="visa_stage"] {
  background: rgba(8, 59, 87, 0.12);
  color: var(--navy);
}

.profile-meta {
  text-align: left;
}

.profile-meta p {
  margin: 0 0 6px;
  color: var(--muted);
}

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

.danger {
  color: var(--red);
}

.hidden {
  display: none !important;
}

.hero-panel > *,
.topbar,
.card,
.stat-card {
  animation: riseIn 0.6s ease both;
}

.topbar {
  animation-delay: 0.08s;
}

.card:nth-of-type(1) {
  animation-delay: 0.12s;
}

.card:nth-of-type(2) {
  animation-delay: 0.18s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    position: relative;
    top: 0;
    min-height: auto;
  }

  .hero-panel h1,
  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    gap: 12px;
    padding: 12px;
  }

  .app-panel {
    padding: 0;
  }

  .hero-panel {
    padding: 24px 18px;
    border-radius: 26px;
    gap: 18px;
  }

  .brand-mark {
    align-items: center;
    gap: 14px;
  }

  .brand-logo {
    width: 66px;
    height: 66px;
    border-radius: 18px;
  }

  .brand-name {
    font-size: 2rem;
  }

  .brand-tagline {
    font-size: 0.82rem;
  }

  .hero-panel h1 {
    max-width: none;
    font-size: 2.25rem;
  }

  .hero-copy {
    font-size: 0.95rem;
    line-height: 1.8;
  }

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

  .hero-list li {
    width: 100%;
  }

  .admin-insights,
  .student-stats-grid {
    grid-template-columns: 1fr;
  }

  .student-hero-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid,
  .form-grid.compact,
  .list-toolbar,
  .dashboard-grid,
  .student-overview-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .profile-strip,
  .booking-card {
    flex-direction: column;
    align-items: stretch;
  }

  .item-card-topline {
    flex-direction: column;
  }

  .button-link,
  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .item-actions .ghost-button,
  .item-actions .primary-button {
    width: auto;
  }
}
