:root {
  --primary: #163a70;
  --primary-dark: #0f274b;
  --primary-soft: #eaf2ff;
  --accent: #d4af37;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #d9e2ef;
  --bg: #eef3f8;
  --card: #ffffff;
  --success-bg: #dff5e8;
  --success-text: #166534;
  --warning-bg: #fff4d6;
  --warning-text: #92400e;
  --info-bg: #e7f0ff;
  --info-text: #1d4ed8;
  --shadow: 0 10px 30px rgba(15, 39, 75, 0.08);
}

body {
  background: linear-gradient(
      rgba(238, 243, 248, 0.94),
      rgba(238, 243, 248, 0.97)
    ),
    url("img/gerbang.jpg") center top / cover no-repeat fixed;
  color: var(--text);
  min-height: 100vh;
}

.navbar.bg-primary,
.btn-primary,
.bg-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

a {
  text-decoration: none;
}

.card {
  border-radius: 22px;
  border: 1px solid rgba(217, 226, 239, 0.9) !important;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
}

.btn,
.form-control,
.form-select {
  border-radius: 14px;
}

.form-control,
.form-select,
textarea.form-control {
  border: 1px solid var(--border);
  padding: 0.75rem 0.95rem;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: #9bb7e3;
  box-shadow: 0 0 0 0.2rem rgba(22, 58, 112, 0.12);
}

.btn-primary {
  padding: 0.8rem 1.2rem;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.hero-card {
  overflow: hidden;
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  background: linear-gradient(
      120deg,
      rgba(10, 28, 55, 0.88),
      rgba(22, 58, 112, 0.76)
    ),
    url("img/gerbang.jpg") center center / cover no-repeat;
  color: #fff;
}

.hero-card .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
}

.hero-card .hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-note {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.info-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.info-list li {
  margin-bottom: 0.55rem;
}

.panel-soft {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
}

.otp-box {
  max-width: 520px;
  margin: 0 auto;
}

.otp-email-box {
  background: var(--primary-soft);
  border: 1px solid #c8daf7;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: var(--primary-dark);
}

.success-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f7ec;
  color: #15803d;
  font-size: 2rem;
  font-weight: 700;
}

.readonly-box {
  background: #f8fafc;
}

.form-label {
  font-weight: 600;
  color: #334155;
}

h1,
h2,
h3,
h4,
h5 {
  color: #0f172a;
}

.alert {
  border-radius: 16px;
  border: none;
}

.alert-info {
  background: var(--info-bg);
  color: var(--info-text);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.alert-danger {
  background: #fde8e8;
  color: #b91c1c;
}

.small-muted {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .hero-card {
    min-height: auto;
  }

  .hero-card .hero-content {
    padding: 1.6rem;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
  }

  .card {
    border-radius: 18px;
  }
}
html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

.site-footer {
  background: #0f274b;
  margin-top: auto;
}
.admin-login-card {
  max-width: 100%;
}

.stat-card {
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.stat-baru {
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
}

.stat-diproses {
  background: linear-gradient(180deg, #ffffff, #fff8e8);
}

.stat-selesai {
  background: linear-gradient(180deg, #ffffff, #eefbf3);
}

.stat-total {
  background: linear-gradient(180deg, #ffffff, #f8f9fc);
}

.admin-table thead th {
  background: #f7faff;
  color: #4b6488;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td,
.admin-table th {
  padding: 0.9rem 0.85rem;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #fbfdff;
}

.status-pill {
  display: inline-block;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-baru {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-diproses {
  background: #fef3c7;
  color: #92400e;
}

.status-selesai {
  background: #d1fae5;
  color: #065f46;
}

.detail-box {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  min-height: 48px;
}

.detail-box-lg {
  min-height: 140px;
}

.progress-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 16px;
  padding: 1rem;
}

.attachment-list .list-group-item {
  border-radius: 14px !important;
  border: 1px solid var(--border);
  margin-bottom: 0.7rem;
}

.attachment-list .list-group-item:last-child {
  margin-bottom: 0;
}
.main-navbar {
  background: linear-gradient(90deg, #163a70, #1f4f94);
  padding: 1rem 0; /* ini bikin tinggi */
}

.logo-wrap {
  width: 56px;
  height: 56px;
  background: #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.swal2-confirm {
  background-color: #163a70 !important;
  border-color: #163a70 !important;
}

.swal2-popup {
  border-radius: 20px !important;
}

.swal2-title {
  color: #163a70 !important;
}
.swal2-popup {
  border-radius: 16px !important;
}

.swal2-title {
  font-size: 14px !important;
}
.action-btn {
  min-width: 85px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 10px;
}

.d-flex form {
  display: flex;
}
.action-btn:hover {
  transform: translateY(-1px);
  transition: 0.2s;
}
.hero-logo {
  max-width: 420px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.3));
}
.hero-card .row {
  align-items: center;
}
.page-title {
  font-size: 1.8rem;
  line-height: 1.4;
}
