:root {
  --primary: #4F46E5;
  --secondary: #312E81;
  --accent: #C7D2FE;
  --bg: #EEF2FF;
  --text: #1E1B4B;
  --danger: #DC2626;
  --success: #16A34A;
}

* {
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= NAVBAR ================= */

.navbar {
  background: white;
  color: white;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.nav-links a {
  margin-left: 20px;
  font-weight: 500;
  color: white;
}

/* ================= LAYOUT ================= */

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

.center {
  text-align: center;
}

/* ================= GRID & CARDS ================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.card h3,
.card h4 {
  margin-top: 12px;
  margin-bottom: 6px;
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
}

.btn.danger {
  background: var(--danger);
}

.btn.success {
  background: var(--success);
}

/* ================= FORMS ================= */

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input,
select,
textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

label {
  font-weight: 600;
  font-size: 14px;
}

/* ================= FILTER FORM ================= */

.filter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-form input,
.filter-form select {
  max-width: 220px;
}

/* ================= ALERTS ================= */

.success {
  background: #DCFCE7;
  color: #166534;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* ================= PAGINATION ================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* ================= ADMIN ================= */

.admin-links li {
  list-style: none;
  margin: 12px 0;
}

/* ================= FOOTER ================= */

footer {
  background: var(--secondary);
  color: white;
  padding: 30px;
  margin-top: 60px;
}

footer h4 {
  margin-bottom: 10px;
}

footer a {
  color: white;
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links a {
    margin-left: 10px;
  }

  .container {
    padding: 20px;
  }
}
