:root {
  --bg: #08111f;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #e5eefc;
  --muted: #9cb3d9;
  --primary: #4f8cff;
  --primary-hover: #3d78e6;
  --secondary: rgba(255, 255, 255, 0.08);
  --danger: #e45151;
  --success: #20c997;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(32, 201, 151, 0.12), transparent 30%),
    linear-gradient(160deg, #050a14 0%, #091325 45%, #07111f 100%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.bg-shape-1 {
  width: 280px;
  height: 280px;
  background: rgba(79, 140, 255, 0.22);
  top: -60px;
  left: -60px;
}

.bg-shape-2 {
  width: 320px;
  height: 320px;
  background: rgba(32, 201, 151, 0.18);
  bottom: -80px;
  right: -80px;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 60px;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  color: #8fb8ff;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 12px;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 0;
  max-width: 650px;
}

.subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 670px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 16px;
  min-width: 350px;
}

.stat-card,
.panel,
.upcoming-card,
.empty-state,
.table-wrap table {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.stat-card strong {
  font-size: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.panel-header h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.panel-header p {
  margin: 0;
  color: var(--muted);
}

.form {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
  color: #d8e6ff;
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.98rem;
  outline: none;
  transition: 0.2s ease;
}

input:focus {
  border-color: rgba(79, 140, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12);
}

input::placeholder {
  color: #84a0ca;
}

.form-actions,
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

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

.btn-danger {
  background: rgba(228, 81, 81, 0.14);
  color: #ffb4b4;
  border: 1px solid rgba(228, 81, 81, 0.22);
}

.cards-list {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.upcoming-card {
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.upcoming-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.upcoming-card p,
.upcoming-card span {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(32, 201, 151, 0.13);
  color: #9cf2d8;
  font-weight: 800;
}

.list-panel {
  padding-bottom: 10px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.table-wrap {
  margin-top: 18px;
}

.table-wrap table {
  width: 100%;
  border-radius: 18px;
  border-collapse: collapse;
  overflow: hidden;
}

th,
 td {
  padding: 16px 14px;
  text-align: left;
}

th {
  color: #c7daf7;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.04);
}

tr:not(:last-child) td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

td {
  color: #edf4ff;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  border: 0;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.action-edit {
  background: rgba(79, 140, 255, 0.14);
  color: #b8d2ff;
}

.action-delete {
  background: rgba(228, 81, 81, 0.14);
  color: #ffbdbd;
}

.empty-state-wrap {
  min-height: 240px;
}

.empty-state {
  height: 100%;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.empty-state h3 {
  margin: 0 0 8px;
}

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

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(10, 18, 34, 0.95);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  z-index: 99;
}

@media (max-width: 980px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-stats {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 20px, 1180px);
    padding-top: 20px;
  }

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

  th:nth-child(4),
  td:nth-child(4) {
    display: none;
  }

  .upcoming-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
