/* doa.css */

/* Layout utama dan form */
.main-content-form {
  margin-left: 0px; /* supaya tidak tertutup sidebar */
  margin-top: 80px; /* supaya tidak tertutup navbar */
  padding: 20px; /* untuk ruang dalam */
}

/* Container background */
.bg-form {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 10px 20px;
  background: linear-gradient(135deg, #f0f4ff, #e2f7f4);
  background: url('img/bg-form.png') no-repeat center center;
}

/* Style form */
.form-doa {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 800px;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  animation: fadeIn 0.5s ease-in-out;
}

/* Flex column untuk group input */
.form-groups {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Animasi fade in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header form */
.header-form {
  position: relative;
  margin-bottom: 30px;
  padding: 0 20px;
  text-align: center;
}

/* Judul Pokok Doa */
.juduldoa {
  font-size: 44px !important;
  font-weight: 900;
  color: maroon;
  margin: 0;
  line-height: 1.1;
}

/* Tanggal di kanan atas */
.tanggal {
  position: absolute;
  top: 0;
  right: 20px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
  user-select: none;
}

/* Label input */
label {
  display: block;
  margin-top: 0px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

/* Input dan textarea */
input,
textarea {
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: linear-gradient(to right, #b13b3b, #1ccaff);
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Input kecil (nama & WA) */
.small-input {
  max-width: 45%;
}

/* Input kecil underline */
.small-input input {
  width: 100%;
  border: none !important;
  border-bottom: 2px solid #333 !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  margin-top: 4px !important;
  margin-bottom: 20px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 16px !important;
  outline: none !important;
  transition: border-color 0.3s ease !important;
}

.small-input input:focus {
  border-bottom-color: linear-gradient(to right, #b13b3b, #1ccaff);
  box-shadow: none !important;
}

/* Textarea pokok doa lebih besar */
.pokok-doa-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  margin-top: 10px;
}

.pokok-doa-textarea:focus {
  border-color: linear-gradient(to right, #b13b3b, #1ccaff);
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  color: #fff; /* putih saat dipilih */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4); /* bayangan tipis gelap */

}

/* Label & input inline */
.inline-label-input {
  display: flex;
  align-items: center;
  gap: 15px;
}

.inline-label-input label {
  min-width: 120px;
  margin-top: 0;
  font-weight: 600;
}

.inline-label-input input {
  flex-grow: 1;
  padding: 8px 12px;
  border-bottom: 2px solid #333;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease;
}

.inline-label-input input:focus {
  border-bottom-color: linear-gradient(to right, #b13b3b, #1ccaff);
}

/* View Mode untuk .small-input div */
.small-input div {
  width: 100%;
  border: none !important;
  border-bottom: 2px solid #333 !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  margin-top: 4px !important;
  margin-bottom: 20px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 16px !important;
  outline: none !important;
  transition: border-color 0.3s ease !important;
}

/* Tombol submit */
button {
  margin-top: 30px;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background: linear-gradient(to right, #2e1010, #134053);
  color: #fff !important;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn {
  white-space: nowrap;
  width: auto;
  flex-shrink: 0;
}

#modalPilihanData .modal-content {
  height: 700px; /* atur sesuai kebutuhan */
  max-height: 90vh; /* maksimal 90% viewport height */
  display: flex;
  flex-direction: column;
}

#modalPilihanData iframe {
  flex-grow: 1;
  border: none;
  width: 100%;
  height: 100%;
}



button:hover {
  background: linear-gradient(to right, #b13b3b, #1ccaff);
  transform: scale(1.02);
}

/* Tombol A Href */
a.btn-view {
  margin-top: 0px;
  width: 15%;
  padding: 4px;
  font-size: 4px;
  background: linear-gradient(to right, #2e1010, #134053);
  color: #fff !important;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

a.btn-view:hover {
  background: linear-gradient(to right, #b13b3b, #1ccaff);
  transform: scale(1.02);
}

.flex-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  width:100%;
  min-width: 300px;
}

.flex-buttons button {
  white-space: nowrap;         /* Biar teks tidak wrap */
  width: auto;          /* Biar ukuran tombol mengikuti teks */
  padding: 8px 16px;           /* Sedikit ruang di dalam tombol */
  border-radius: 8px;          /* Rounded sedikit */
  font-size: 14px;
  flex-shrink: 0;
}


/* Table */
input:focus, textarea:focus {
  border: 2px solid transparent;
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
  background-image: linear-gradient(to right, #b13b3b, #1ccaff);
  background-origin: border-box;
  background-clip: content-box, border-box;
}

.table thead th {
  background: linear-gradient(to right, #2e1010, #134053);
  color: white;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
}

.table tbody td {
  vertical-align: middle;
}

/* Untuk tabel header */
.table-judul-submit th {
  background-color: #efefef;
  text-align: center;
  font-size: 14px;
  padding: 8px;
}


/* Responsive untuk max-width 600px */
@media (max-width: 768px) {
  .form-doa {
    padding: 32px;
    max-width: 98%;
  }

  .juduldoa {
    font-size: 36px !important;
  }

  .tanggal {
    font-size: 12px;
  }

  .inline-label-input {
    flex-direction: column;
    align-items: flex-start;
  }

  .small-input {
    max-width: 100% !important;
  }

  button {
    font-size: 15px;
    padding: 12px 16px;
  }

  .table-judul-submit,
  .table-ultah {
    width: 100% !important;
    table-layout: fixed;
  }

  .table-judul-submit th,
  .table-ultah td {
    word-wrap: break-word;
    white-space: normal;
  }

  .collapse,
  .list-group-item,
  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
}


/* Versi Mobile untuk max-width 480px */
@media (max-width: 480px) {
  .main-content-form {
    margin-left: 0;
    margin-top: 60px;
  }

  .bg-form {
    padding: 8px 10px;
    background-size: cover;
  }

  .form-doa {
    padding: 20px 16px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .header-form {
    margin-bottom: 20px;
    padding: 0 0px;
  }

  .juduldoa {
    font-size: 28px !important;
    font-weight: 800;
    color: #2b3a4a;
  }

  .tanggal {
    font-size: 7px;
    top: 0px;
    right: 0px;
  }

  label {
    font-size: 13px;
    margin-top: 0px;
  }

  input,
  textarea {
    font-size: 14px;
    padding: 12px 14px;
  }

  textarea.pokok-doa-textarea {
    min-height: 140px;
  }

  .small-input {
    max-width: 100% !important;
  }

  .inline-label-input {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-label-input label {
    min-width: auto;
    margin-bottom: 6px;
  }

  .inline-label-input div,
  .inline-label-input input {
    width: 100%;
    border-bottom: 2px solid #333 !important;
  }

  button {
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    white-space: nowrap;       /* Mencegah teks pindah baris */
    width: fit-content;        /* Lebar mengikuti konten */
    display: inline-block;     /* Agar tetap dalam flow horizontal */
  }

  button:hover {
    transform: none;
  }






  
  
  





}
