/* Umum */
body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 20px;
  text-align: center;
}

.container {
  max-width: 960px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

h2 {
  color: #003366;
  font-weight: 600;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-size: 24px;
}

h3 {
  font-size: 18px;
  color: #003366;
  font-weight: 600;
  margin-bottom: 20px;
}

h4 {
  margin-top: 30px;
  color: #003366;
  font-weight: 600;
  font-size: 16px;
}

/* Carian */
.search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.search-bar label {
  font-weight: 600;
  color: #222;
  width: 100px;
  text-align: right;
}

.search-bar input {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  padding: 10px 15px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-bar input:focus {
  border-color: #007BFF;
}

#resetBtn {
  background-color: #495057;
  color: white;
  font-size: 14px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#resetBtn:hover {
  background-color: #343a40;
}

#hasil {
  margin-top: 30px;
}

/* Jadual Umum */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 30px;
}

th, td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}

th {
  background-color: #003366;
  color: white;
}

/* Status Gred */
.status-naik {
  color: green;
}
.status-turun {
  color: red;
}
.status-kekal {
  color: orange;
}

/* Jadual IMK */
.profil-kerjaya-table th {
  background-color: #003366;
  color: white;
  text-align: center;
}

.profil-kerjaya-table td:first-child {
  text-align: center;
  font-weight: bold;
}

.profil-kerjaya-table th,
.profil-kerjaya-table td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
}

/* Kandungan yang dijana oleh JavaScript */
#hasil, #hasil table, #hasil th, #hasil td, #hasil a, #hasil p, #hasil h4 {
  font-family: 'Poppins', sans-serif !important;
}

#hasil table {
  border-collapse: collapse;
}

#hasil a {
  color: #5e2ca5;
  text-decoration: none;
  font-weight: 600;
}

#hasil a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-bar label {
    width: auto;
    text-align: left;
  }
  .search-bar input {
    max-width: 100%;
  }
}

.input-icon-wrapper input {
  font-family: 'Poppins', sans-serif;
}

.input-icon-wrapper .icon {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  margin-right: 6px;
}

input, button, select, textarea {
  font-family: 'Poppins', sans-serif;
}
