:root {
  --primary-color: #0f4c81;
  --secondary-color: #f2a900;
  --bg-color: #f8f9fa;
  --text-color: #333333;
  --white: #ffffff;

  --radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

header {
  background-color: var(--white);
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-placeholder {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.school-name h1 {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.school-name p {
  font-size: 0.8rem;
  color: #666;
}

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a75ff 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 12px auto;
}

.check-section {
  background-color: var(--white);
  max-width: 600px;
  margin: -40px auto 40px auto;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

.check-section h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"],
input {
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  width: 100%;
}

input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.12);
}

button {
  padding: 15px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.1s;
}

button:hover {
  background-color: #d19200;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

#loadingArea {
  margin-top: 25px;
  padding: 16px 18px;
  border-radius: 8px;
  font-weight: bold;
  background: rgba(15, 76, 129, 0.06);
  border: 1px solid rgba(15, 76, 129, 0.15);
  animation: fadeIn 0.5s ease-in-out;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.loading-area {
  display: flex;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(15, 76, 129, 0.3);
  border-top-color: rgba(15, 76, 129, 0.95);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#hasilArea {
  margin-top: 25px;
  padding: 10px;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.foto-profil {
  width: 120px;
  height: 150px;
  object-fit: cover;
  /* border-radius: 50%; */
  border: 3px solid #e0e0e0;
  margin: 0 auto 15px auto;
  display: block;
}

.status-box {
  margin: 14px auto 10px auto;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
  border: 1px solid transparent;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-lulus {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-tunda {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.pesan {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.45;
}

#pesanSiswa {
  font-weight: 800;
  color: #2f2f2f;
}

.error-text {
  max-width: 600px;
  margin: 15px auto 0 auto;
  padding: 16px;
  border-radius: 8px;
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  font-size: 13px;
  line-height: 1.4;
}

.message-section {
  max-width: 800px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
  text-align: center;
}

.message-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.message-section p {
  font-style: italic;
  color: #555;
}

footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  margin-top: auto;
}

footer p {
  margin-bottom: 10px;
}

/* === Responsivitas === */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }
  .check-section {
    margin: -20px 20px 40px 20px;
    padding: 20px;
  }
}
