/* ============================================================
   ASTGEN INTERNSHIP — Master CSS
   File: assets/css/internshipcss.css
   ============================================================ */

/* ---------- Form Labels ---------- */
.card-body .form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #334155;
  font-size: 0.9rem;
}

/* ---------- Inputs / Selects ---------- */
.card-body .form-control,
.card-body .form-select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1e293b;
  background-color: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.card-body .form-control:focus,
.card-body .form-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.card-body .form-control[readonly] {
  background-color: #f1f5f9;
  cursor: not-allowed;
}

/* ---------- Custom Select Arrow ---------- */
.card-body select.form-control,
.card-body select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 38px;
}

/* ---------- Row gap — Bootstrap 4 fallback ---------- */
.card-body .row {
  margin-left: -8px;
  margin-right: -8px;
}
.card-body .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 16px;
}

/* ---------- Textarea ---------- */
.card-body textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

/* ---------- Photo Preview ---------- */
.photo-preview {
  width: 130px;
  height: 160px;
  border: 2px dashed #cbd5e1;
  border-radius: 6px;
  object-fit: cover;
  background: #f8fafc;
}

.card-body input[type="file"].form-control {
  padding: 8px 12px;
}

/* ---------- Cards ---------- */
.card {
  border-radius: 10px;
  overflow: hidden;
}
.card-header {
  padding: 12px 18px;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.card-body {
  padding: 20px 22px;
}

/* ============================================================
   DECLARATION CHECKBOX — Fixed alignment
   ============================================================ */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  margin: 8px 0 0;
}

.form-check .form-check-input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
  accent-color: #2563eb;
  cursor: pointer;
}

.form-check .form-check-label {
  cursor: pointer;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   FEE HINT
   ============================================================ */
#feeInfo {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #16a34a;
  font-weight: 600;
}

/* ============================================================
   SUBMIT BUTTON — Solid, hover effect
   ============================================================ */
.card-body .text-center .btn-primary,
.card-body button[type="submit"].btn-primary {
  padding: 10px 45px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  background-color: #2563eb;
  border-color: #2563eb;
  color: #fff;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.card-body .text-center .btn-primary:hover,
.card-body button[type="submit"].btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.card-body .text-center .btn-primary:focus,
.card-body button[type="submit"].btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* ============================================================
   LIST / TABLE STYLING (for index.php)
   ============================================================ */
.list-header {
  background: linear-gradient(90deg, #5b2ec9, #2a72e8);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.list-header h5 { margin: 0; }
.records-badge {
  background: #fff;
  color: #1e293b;
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

.table thead th {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  color: #64748b;
  background: #f5f6fa;
  border-bottom: 2px solid #e2e8f0;
}
.table tbody tr:hover {
  background: #f8fafc;
}

.btn-verify {
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 600;
}

/* ---------- Status Page ---------- */
.status-card {
  border-left: 5px solid #2563eb;
  padding: 20px;
  border-radius: 8px;
}
.status-approved { border-left-color: #16a34a; }
.status-pending  { border-left-color: #f59e0b; }
.status-rejected { border-left-color: #dc2626; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 576px) {
  .card-body { padding: 16px 14px; }
  .photo-preview { width: 110px; height: 140px; }
  .list-header { flex-direction: column; gap: 10px; }
}