:root {
  --bg: #f6f9ff;
  --card: #ffffff;
  --primary: #0b63ff;
  --primary-dark: #0047b3;
  --muted: #6b7280;
  --accent: #e6f0ff;
}

* {
  box-sizing: border-box
}

body {
  font-family: Inter, system-ui, Arial;
  background: var(--bg);
  color: #0f172a;
  margin: 0
}

.container {
  width: 95%;
  max-width: 1100px;
  margin: 28px auto
}

.topbar {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 14px 0
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.topbar h1 {
  margin: 0;
  font-size: 20px
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  margin-left: 12px;
  text-decoration: none
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(9, 30, 66, 0.06);
  margin-bottom: 18px
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px
}

.tile {
  display: block;
  padding: 18px;
  text-align: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid #eef2ff;
  text-align: left
}

.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f3f7ff;
  color: var(--primary-dark);
  text-decoration: none;
  border: 1px solid transparent
}

.btn.small {
  padding: 6px 10px
}

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

.btn.danger {
  background: #ff4d4f;
  color: white
}

.actions {
  margin-top: 12px
}

label {
  display: block;
  margin-bottom: 8px
}

input,
select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dbeafe
}

.alert {
  padding: 8px;
  background: #fff3cd;
  border-radius: 6px
}

.footer {
  padding: 12px;
  text-align: center;
  color: var(--muted)
}

@media (max-width:640px) {
  .topbar .container {
    flex-direction: column;
    gap: 8px
  }

  .table thead {
    display: none
  }

  .table tr {
    display: block;
    margin-bottom: 12px
  }

  .table td {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eef2ff
  }
} 

