/* --- Variabel Global & Font --- */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f3f4f6;
  background-image: radial-gradient(#d1d5db 0.5px, transparent 0.5px);
  background-size: 20px 20px;
}
:root {
  --primary-color: #3B82F6;
  --primary-hover-color: #2563EB;
}

/* --- Canvas Konfeti --- */
#confetti-canvas {
    display: none !important;
}

/* --- Kartu Indikator --- */
.indicator-card {
    background-color: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.indicator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
    border-color: var(--primary-color);
}
.indicator-card.active {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}
.indicator-card .icon {
    margin: 0 auto 0.75rem;
    height: 2.5rem;
    width: 2.5rem;
    color: var(--primary-color);
}
.indicator-card .title {
    font-weight: 600;
    color: #1f2937;
}
.indicator-card .count {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* --- Tombol Utama --- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; border: 1px solid transparent; font-weight: 600;
  border-radius: 0.5rem; color: white; background-color: var(--primary-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn-primary:hover {
  background-color: var(--primary-hover-color); transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

/* --- Tombol Unggah Foto --- */
.upload-button {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #4b5563;
    font-weight: 500;
    background-color: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
}
.upload-button:hover {
    color: var(--primary-color);
    background-color: #eff6ff;
}
.upload-button svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.25rem;
}

/* --- Form Input & Label --- */
.form-input {
  margin-top: 0.25rem; display: block; width: 100%;
  padding: 0.75rem 1rem; background-color: #f9fafb;
  border: 1px solid #d1d5db; border-radius: 0.5rem;
}
.form-input:focus {
  outline: none; border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 25%, transparent);
}
.form-label {
    display: block; margin-bottom: 0.5rem; font-weight: 500; color: #374151;
}

/* --- Radio Button Kustom --- */
.custom-radio input[type="radio"] { display: none; }
.custom-radio label {
  cursor: pointer; padding: 0.5rem 1rem; border-radius: 0.5rem;
  border: 1px solid #d1d5db; color: #4b5563;
}
.custom-radio input[type="radio"]:checked + label {
  background-color: var(--primary-color); color: white; border-color: var(--primary-color);
}
.custom-radio input[type="radio"]:hover:not(:checked) + label {
    border-color: var(--primary-color); color: #1f2937;
}

/* --- Loader --- */
.btn-loader {
  border: 4px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
  border-top: 4px solid #ffffff; width: 24px; height: 24px;
  animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
