* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 20px;
  position: relative;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  margin: 0 15px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  z-index: 1;
}

.top-right-icons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  font-size: 20px;
}

.top-right-icons a {
  color: #007BFF;
  text-decoration: none;
  transition: color 0.3s;
}

.top-right-icons a:hover {
  color: #0056b3;
}

.logo {
  width: 100px;
  margin: 20px auto;
  display: block;
}

header h1 {
  font-size: 24px;
  margin-top: 10px;
}

.sub-title {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}

.system-title {
  font-size: 18px;
  margin: 20px 0;
  color: #007BFF;
}

.countdown {
  font-size: 28px;
  font-weight: bold;
  margin: 20px 0;
  color: #d9534f;
}

.instruction {
  margin-bottom: 10px;
  font-style: italic;
  color: #555;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-form input {
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.search-form button {
  padding: 10px;
  font-size: 16px;
  background-color: #28a745;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.search-form button:hover {
  background-color: #218838;
}

footer {
  margin-top: 30px;
  font-size: 14px;
  color: #777;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.modal.show {
  display: flex !important;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

.modal-content .close:hover {
  color: #333;
}

/* Form Login */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.login-form button {
  background-color: #007bff;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.login-form button:hover {
  background-color: #0056b3;
}

/* WhatsApp Link */
.whatsapp-link {
  display: inline-block;
  background-color: #25d366;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.whatsapp-link:hover {
  background-color: #128c7e;
}

/* Status Lulus / Tidak */
.lulus {
  color: blue;
  font-weight: bold;
}

.tidak-lulus {
  color: red;
  font-weight: bold;
}


/* Animasi fade */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
