:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color: #f3f4f6;
  --bg-image: url('disdik.png'); 
  --text-main: #1f2937;
  --border-color: #d1d5db;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.main-container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  box-sizing: border-box;
}

.card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 30px;
}

.header {
  text-align: center;
  margin-bottom: 25px;
}

.app-logo {
  max-width: 200px;
  height: auto;
}

.subtitle {
  font-size: 13px; 
  margin-top: 5px; 
  color: #6b7280;
}

.btn-guide {
  display: inline-block; 
  margin-top: 15px; 
  font-size: 15px; 
  color: #1d4ed8; 
  text-decoration: none; 
  font-weight: 700; 
  background-color: #eff6ff; 
  padding: 10px 24px; 
  border-radius: 25px; 
  border: 2px solid #bfdbfe; 
  transition: all 0.2s ease; 
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
  cursor: pointer;
}

.info-banner {
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group { margin-bottom: 15px; }
.flex-row { display: flex; gap: 15px; margin-bottom: 15px; }
.half-width { flex: 1; margin-bottom: 0; }

label {
  display: block; font-size: 15px; font-weight: 600;
  color: var(--text-main); margin-bottom: 8px;
}

.required { color: red; }

input[type="text"], input[type="number"], input[type="email"], input[type="date"], select, input[type="file"] {
  width: 100%; padding: 12px; border: 1px solid var(--border-color);
  border-radius: 8px; font-size: 16px; box-sizing: border-box;
  font-family: inherit; transition: border-color 0.2s; background-color: white;
}

input[type="file"] { padding: 8px; font-size: 14px; }
input:focus, select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
input[readonly] { background-color: #f3f4f6; color: #6b7280; }

.btn-primary {
  width: 100%; padding: 14px 20px; font-size: 16px; font-weight: bold; 
  border-radius: 8px; background-color: var(--primary-color); color: white;
  border: none; cursor: pointer; transition: background-color 0.2s;
  display: flex; justify-content: center; align-items: center;
}
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-primary:disabled { background-color: #93c5fd; cursor: not-allowed; }

.usul-section { text-align: center; }
.usul-text { font-size: 13px; color: #6b7280; margin-bottom: 10px; }

.btn-secondary {
  width: 100%; padding: 12px; font-size: 15px; font-weight: bold; 
  border-radius: 8px; background-color: #10b981; color: white;
  border: none; cursor: pointer; transition: background-color 0.2s;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}
.btn-secondary:hover { background-color: #059669; }

.btn-cancel {
  width: 100%; padding: 12px; background-color: transparent;
  color: #4b5563; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-cancel:hover { background-color: #f3f4f6; color: #111827; }

.form-title { font-size: 18px; color: var(--primary-color); margin-top: 0; margin-bottom: 15px; text-align: center; }
.hasil-heading { font-size: 15px; margin-bottom: 12px; color: #374151; text-align: left; }

.hasil-item {
  text-align: left; padding: 15px; border: 1px solid #e5e7eb;
  border-radius: 8px; margin-bottom: 12px; background-color: #f9fafb;
}
.hasil-title { font-weight: 600; font-size: 15px; color: #111827; margin-bottom: 6px; }
.hasil-meta { font-size: 13px; color: #4b5563; margin-bottom: 14px; }

.btn-download {
  display: inline-block; padding: 10px 18px; background-color: var(--primary-color); 
  color: white; text-decoration: none; border-radius: 6px; 
  font-weight: 600; font-size: 14px; text-align: center;
}

.alert-info {
  background-color: #fee2e2; border: 1px solid #fca5a5; color: #991b1b;
  padding: 15px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; line-height: 1.5;
}

.footer { margin-top: 30px; text-align: center; }
.footer-divider { height: 1px; background-color: #e5e7eb; margin-bottom: 15px; }
.agency { font-size: 14px; font-weight: 700; color: #374151; margin-bottom: 8px; }
.developer { font-size: 12px; color: #6b7280; line-height: 1.6; }

.loader {
  border: 3px solid rgba(255,255,255,0.3); border-top: 3px solid white;
  border-radius: 50%; width: 20px; height: 20px;
  animation: spin 1s linear infinite; display: none; margin-left: 10px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Panduan Pengguna */
.guide-content { color: var(--text-main); font-size: 14px; line-height: 1.6; }
.guide-content h3 { font-size: 15px; color: var(--primary-color); margin-top: 25px; margin-bottom: 10px; border-bottom: 2px solid #eff6ff; padding-bottom: 8px; }
.guide-content p { margin-bottom: 12px; }
.guide-content ul, .guide-content ol { padding-left: 20px; margin-bottom: 15px; }
.guide-content li { margin-bottom: 8px; }
