/* ====== Global Reset ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

/* ====== Navbar ====== */
.navbar {
  background-color: #004b8d;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left h1 {
  font-size: 18px;
  font-weight: 500;
}

.logo {
  width: 45px;
  height: auto;
}

.logout-btn {
  background: #c62828;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.logout-btn:hover {
  background: #b71c1c;
}

/* ====== Main Container ====== */
.main-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}

/* ====== Card Layout ====== */
.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card h2 {
  margin-bottom: 20px;
  color: #004b8d;
  font-size: 20px;
}

/* ====== Form Style ====== */
form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

form input, form button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

form button {
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  border: none;
}

form button:hover {
  background-color: #0056b3;
}

/* ====== Table Style ====== */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table th {
  background-color: #004b8d;
  color: white;
  padding: 10px;
  text-align: center;
}

table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* ====== Footer ====== */
.footer {
  background-color: #004b8d;
  color: white;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
}

/* ====== Responsive Design ====== */
@media (max-width: 992px) {
  .navbar {
    flex-direction: column;
    text-align: center;
  }
  .nav-left h1 {
    font-size: 16px;
  }
  form {
    grid-template-columns: 1fr;
  }
  form button {
    width: 100%;
  }
  table th, table td {
    font-size: 13px;
    padding: 8px;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 10px;
  }
  .logo {
    width: 40px;
  }
  .card {
    padding: 15px;
  }
  h2 {
    font-size: 18px;
  }
  .footer {
    font-size: 12px;
  }
}
