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

:root {
  --pu-blue: #263f77;
  --pu-green: #406f27;
  --white-glass: rgba(255, 255, 255, 0.72);
  --border-glass: rgba(255, 255, 255, 0.42);
  --text-dark: #1f2937;
  --text-muted: #6b7280;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  color: var(--text-dark);
  background:
    radial-gradient(circle at top left, rgba(64,111,39,0.35), transparent 34%),
    radial-gradient(circle at top right, rgba(38,63,119,0.38), transparent 36%),
    linear-gradient(135deg, #f8fbff 0%, #eef7ed 45%, #edf4ff 100%);
  background-attachment: fixed;
}

.dashboard {
  width: min(1220px, 92%);
  margin: 0 auto;
  padding: 36px 0;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
}

.header h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: var(--pu-blue);
  letter-spacing: -0.04em;
}

.header p {
  margin-top: 8px;
  color: rgba(31, 41, 55, 0.72);
  font-size: 14px;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white-glass);
  color: var(--pu-green);
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(38, 63, 119, 0.10);
}

.live-pill span {
  width: 9px;
  height: 9px;
  background: var(--pu-green);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(64, 111, 39, 0.13);
}

.top-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.highlight-card,
.stat-card,
.table-card,
.controls {
  background: var(--white-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(38, 63, 119, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.55);
}

.highlight-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.48)),
    linear-gradient(135deg, rgba(38,63,119,0.12), rgba(64,111,39,0.12));
}

.highlight-card::before {
  content: "";
  position: absolute;
  inset: -80px auto auto -80px;
  width: 220px;
  height: 220px;
  background: rgba(64,111,39,0.22);
  border-radius: 50%;
  filter: blur(10px);
}

.highlight-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  background: rgba(38,63,119,0.22);
  border-radius: 50%;
  filter: blur(12px);
}

.highlight-card > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  color: var(--pu-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.highlight-card h2 {
  font-size: clamp(34px, 5vw, 54px);
  color: var(--pu-blue);
  margin-bottom: 24px;
  letter-spacing: -0.05em;
  line-height: 1;
}

.highlight-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.highlight-details div {
  background: rgba(255,255,255,0.58);
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.55);
}

.highlight-details span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.highlight-details strong {
  font-size: 15px;
  color: var(--text-dark);
}

.remarks {
  color: #374151;
  font-size: 14px;
}

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

.stat-card {
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(38, 63, 119, 0.16);
}

.stat-card span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 36px;
  color: var(--pu-blue);
  letter-spacing: -0.04em;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 22px;
}

input,
select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(38, 63, 119, 0.14);
  border-radius: 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,0.72);
  color: var(--text-dark);
}

input:focus,
select:focus {
  border-color: var(--pu-blue);
  box-shadow: 0 0 0 4px rgba(38, 63, 119, 0.08);
}

.table-card {
  padding: 24px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.table-header h3 {
  color: var(--pu-blue);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.table-header p {
  color: var(--text-muted);
  font-size: 13px;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 20px;
}

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

th {
  text-align: left;
  color: #475569;
  font-size: 12px;
  padding: 15px 14px;
  background: rgba(255,255,255,0.56);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  padding: 17px 14px;
  border-bottom: 1px solid rgba(38, 63, 119, 0.08);
  font-size: 14px;
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(255,255,255,0.42);
}

.status-badge {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.scheduled {
  background: rgba(38, 63, 119, 0.12);
  color: var(--pu-blue);
}

.for-update {
  background: rgba(255, 193, 7, 0.18);
  color: #8a6100;
}

.completed {
  background: rgba(64, 111, 39, 0.14);
  color: var(--pu-green);
}

.cancelled {
  background: rgba(220, 38, 38, 0.12);
  color: #b42318;
}

.rescheduled {
  background: rgba(105, 65, 198, 0.12);
  color: #6941c6;
}

.default-status {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.footer {
  margin-top: 18px;
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: rgba(31, 41, 55, 0.55);
  letter-spacing: 0.02em;
}

.footer span {
  color: var(--pu-blue);
  font-weight: 700;
}

@media (max-width: 820px) {
  .dashboard {
    width: min(100% - 28px, 1220px);
    padding: 24px 0;
  }

  .header,
  .table-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .highlight-details,
  .controls {
    grid-template-columns: 1fr;
  }

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

  .highlight-card {
    padding: 24px;
  }

  .stat-card {
    padding: 18px;
  }
}
