:root {
  --bg: #eeeae0;
  --text: #243937;
  --accent: #4a6d67;
  --card: #ffffff;
  --muted: #6f7c79;
  --border: #d5cec0;
  --shadow: 0 12px 30px rgba(36, 57, 55, 0.08);
  --radius: 14px;
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, #f5f1e8, var(--bg));
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav img {
  height: 38px;
}

.nav a,
.nav button {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  margin-left: 16px;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px 40px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-full {
  width: 100%;
  margin-bottom: 16px;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 600;
}

input,
select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fdfbf7;
}

button,
.btn,
.btn-secondary {
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

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

.btn-icon {
  width: 38px;
  min-width: 38px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-danger {
  background: #b34040;
}

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

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  background: #dff3ef;
  color: var(--text);
  font-size: 12px;
}

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

.flex {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

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

.alert {
  padding: 10px 14px;
  border-radius: 10px;
  background: #f0f4f3;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 57, 55, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  width: min(500px, 92vw);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 700;
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.nav-center {
  flex: 1;
  text-align: center;
  font-weight: 700;
}
