@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f2f9ff;
  color: #222;
}

.topbar {
  background-color: #6dcff6;
  text-align: center;
  padding: 30px 20px 20px;
  color: white;
}

.logo-kistarp {
  width: 90px;
  height: auto;
  margin-bottom: 10px;
}

.tajuk-utama {
  font-size: 24px;
  font-weight: 700;
  margin: 10px 0 5px;
}

.kolej {
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.kolej-nama {
  font-size: 15px;
  margin-top: -6px;
  color: #fff;
}

.tajuk-tengah {
  text-align: center;
  margin-top: 10px;
  margin-bottom: -10px;
}

.tajuk-besar {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 5px 0;
}

.tajuk-kecil {
  font-size: 14px;
  font-style: italic;
  color: #444;
  margin: 0;
}

.container {
  max-width: 600px;
  margin: 30px auto;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

input[type="text"] {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

button {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  background-color: #ffc107;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #e0aa00;
}

.result-box {
  background-color: #f8fbff;
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.result-box h2 {
  font-size: 20px;
  color: #184a78;
  margin-bottom: 15px;
}

.result-box p {
  margin: 6px 0;
}

.result-box hr {
  margin: 15px 0;
  border: none;
  border-top: 1px solid #ccc;
}

.result-box a {
  text-decoration: none;
  color: #0070cc;
  font-weight: 500;
}

.btn-cetak {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cetak:hover {
  background: #3e8e41;
}

@media print {
  body * {
    visibility: hidden;
  }
  .result-box, .result-box * {
    visibility: visible;
  }
  .result-box {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px;
    margin: 0;
    box-shadow: none;
    border: none;
    background: white;
  }
}

/* Popup sistem belum dibuka */
.popup-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 25px 35px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  font-family: 'Poppins', sans-serif;
  animation: zoomIn 0.2s ease-out;
}

.popup-content p {
  font-size: 15px;
  margin-bottom: 20px;
  color: #222;
}

.btn-tutup {
  background-color: #ffc107;
  color: black;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  width: 100%;
}

.btn-tutup:hover {
  background-color: #e0aa00;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Jadual Analisis Keputusan */
.analisis-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

#analisisTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15px;
}

#analisisTable th,
#analisisTable td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

#analisisTable th {
  background-color: #e3f2fd;
  font-weight: 600;
  color: #184a78;
}

#analisisTable td {
  background-color: #fafafa;
}

.analisis-container h3 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 18px;
  color: #184a78;
}
