* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --card: rgba(15, 23, 42, 0.78);
  --border: rgba(255,255,255,0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --danger: #ef4444;
  --danger-hover: #dc2626;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(135deg, #020617, #0f172a);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ========================================================== */
/* BACKGROUND */
/* ========================================================== */

.background-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  background: #2563eb;
  filter: blur(160px);
  opacity: 0.18;
  top: -120px;
  right: -120px;
  z-index: 0;
}

/* ========================================================== */
/* CONTAINER */
/* ========================================================== */

.container {
  width: 92%;
  max-width: 1400px;
  margin: 50px auto;
  position: relative;
  z-index: 2;
}

/* ========================================================== */
/* HERO */
/* ========================================================== */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
  font-size: 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(147,197,253,0.15);
}

.hero h1 {
  font-size: 52px;
  margin-bottom: 12px;
  line-height: 1;
}

.hero p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 620px;
}

/* ========================================================== */
/* STATS */
/* ========================================================== */

.stats-card {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  padding: 28px;
  border-radius: 24px;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.stats-card span {
  color: var(--muted);
  font-size: 14px;
}

.stats-card h2 {
  font-size: 42px;
  margin-top: 10px;
}

/* ========================================================== */
/* TOOLBAR */
/* ========================================================== */

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.toolbar-left {
  flex: 1;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar input {
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.7);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: 0.2s ease;
}

.toolbar input:focus {
  border-color: rgba(59,130,246,0.7);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}

/* ========================================================== */
/* BUTTONS */
/* ========================================================== */

button {
  border: none;
  outline: none;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 600;
}

.primary-button {
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(59,130,246,0.3);
}

.primary-button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.edit-button {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
  margin-right: 8px;
}

.edit-button:hover {
  background: rgba(59,130,246,0.25);
}

.delete-button {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
}

.delete-button:hover {
  background: rgba(239,68,68,0.25);
}

/* ========================================================== */
/* TABLE */
/* ========================================================== */

.table-wrapper {
  overflow-x: auto;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.35);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: rgba(255,255,255,0.03);
}

th {
  text-align: left;
  padding: 20px;
  font-size: 13px;
  text-transform: uppercase;
  color: #93c5fd;
  border-bottom: 1px solid var(--border);
  letter-spacing: 1px;
}

td {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #e2e8f0;
}

tbody tr {
  transition: 0.2s ease;
}

tbody tr:hover {
  background: rgba(59,130,246,0.08);
}

tbody tr:last-child td {
  border-bottom: none;
}

.secondary-button {
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(96, 207, 68, 0.932);
  color: var(--text);
  font-size: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.secondary-button:hover {
  background: rgba(96, 207, 68, 0.932);
  transform: translateY(-1px);
}

.cancel-button {
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.932);
  color: var(--text);
  font-size: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cancel-button:hover {
  background: rgba(239, 68, 68, 0.932);
  transform: translateY(-1px);
}

/* ========================================================== */
/* MODAL */
/* ========================================================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.hidden {
  display: none;
}

.modal-content {
  width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-content h2 {
  margin-bottom: 16px;
}

.modal-content label {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.7);
  color: var(--text);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* ========================================================== */
/* EMPTY */
/* ========================================================== */

.empty-state {
  text-align: center;
  padding: 50px;
  color: var(--muted);
}

/* ========================================================== */
/* SCROLLBAR */
/* ========================================================== */

::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ========================================================== */
/* RESPONSIVE */
/* ========================================================== */

@media (max-width: 768px) {

  .hero h1 {
    font-size: 36px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-right {
    width: 100%;
  }

  .primary-button {
    width: 100%;
  }

  th,
  td {
    padding: 16px;
  }

}