/* ===============================
   ROOT & GLOBAL
================================= */
:root {
  --primary: #0f766e;
  --primary-dark: #065f46;
  --gold: #facc15;
  --bg-soft: #f0fdfa;
  --white: #ffffff;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

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

body {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

/* ===============================
   PAGE LAYOUT
================================= */
.idul-fitri-page {
  min-height: 100vh;
  padding: 60px 20px;
  margin-top: 40px; /* Jarak dari navbar */
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ===============================
   HEADER
================================= */
.idul-fitri-header {
  text-align: center;
  margin-bottom: 40px;
}

.idul-fitri-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.deadline-badge {
  display: inline-block;
  background: var(--gold);
  color: #78350f;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* ===============================
   FORM CONTAINER
================================= */
.form-container {
  background: var(--white);
  width: 100%;
  max-width: 500px;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.form-container:hover {
  transform: translateY(-5px);
}

/* ===============================
   FORM INPUTS
================================= */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

input,
select {
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  transition: 0.3s;
}

input:focus,
select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ===============================
   CHECKBOX
================================= */
.confirmation {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  align-items: flex-start;
  color: #374151;
}

.confirmation input {
  margin-top: 3px;
  accent-color: var(--primary);
}

/* ===============================
   BUTTON
================================= */
.submit-button {
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  transition: 0.3s;
  box-shadow: var(--shadow);
}

.submit-button:hover {
  transform: translateY(-3px);
  opacity: 0.95;
}

.submit-button:active {
  transform: scale(0.97);
}

/* ===============================
   MODAL BASE
================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 400px;
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  animation: scaleUp 0.3s ease;
}

/* ===============================
   MODAL CLOSE
================================= */
.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  transition: 0.3s;
}

.modal-close:hover {
  color: black;
}

/* ===============================
   MODAL ICON
================================= */
.modal-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
}

/* SUCCESS */
.modal-icon.success {
  background: #d1fae5;
  color: #065f46;
}

/* ERROR */
.modal-icon.error {
  background: #fee2e2;
  color: #b91c1c;
}

/* ===============================
   MODAL TEXT
================================= */
.modal h2 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.modal p {
  font-size: 0.9rem;
  color: #4b5563;
}

/* ===============================
   ANIMATION
================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 480px) {
  .form-container {
    padding: 25px;
  }

  .idul-fitri-title {
    font-size: 1.8rem;
  }
}
/* ===============================
   LOADING MODAL
================================= */
.loading-content {
  text-align: center;
}

.loader {
  width: 60px;
  height: 60px;
  border: 6px solid #d1d5db;
  border-top: 6px solid var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

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