/* eCetak Custom CSS */
/* Tema: Light Blue Gradient dengan Background Biru Gelap */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #001f3f 0%, #004080 50%, #0066cc 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container-wrapper {
  min-height: 100vh;
  padding: 30px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  margin-bottom: 20px;
}

.card-header {
  background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
  border-radius: 15px 15px 0 0;
  padding: 20px;
  border: none;
}

.card-header h4, .card-header h5 {
  color: white;
  margin: 0;
  font-weight: 600;
}

.card-header .text-muted {
  color: rgba(255, 255, 255, 0.9) !important;
}

.badge-status {
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.badge-status.bg-success {
  background-color: #4caf50 !important;
}

.badge-status.bg-danger {
  background-color: #f44336 !important;
}

.badge-status.bg-warning {
  background-color: #ff9800 !important;
  color: white !important;
}

.table-responsive {
  border-radius: 10px;
  overflow: hidden;
}

.table {
  margin: 0;
  background: transparent;
}

.table thead {
  background: linear-gradient(135deg, #81d4fa 0%, #4fc3f7 100%);
  color: white;
}

.table thead th {
  border: none;
  padding: 15px;
  font-weight: 600;
  vertical-align: middle;
}

.table tbody td {
  padding: 12px 15px;
  vertical-align: middle;
  border-color: #e0e0e0;
}

.table tbody tr:hover {
  background-color: #e3f2fd;
}

.btn-group-custom {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-custom {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
}

.btn-custom-primary {
  background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
  color: white;
}

.btn-custom-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 136, 229, 0.4);
  color: white;
}

.btn-custom-secondary {
  background: linear-gradient(135deg, #90caf9 0%, #64b5f6 100%);
  color: white;
}

.btn-custom-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(100, 181, 246, 0.4);
  color: white;
}

.info-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.info-label {
  font-weight: 600;
  color: #1565c0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: #333;
  font-size: 16px;
  margin-top: 5px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: white;
}

.empty-state-icon {
  font-size: 60px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.empty-state-text {
  font-size: 18px;
  margin-bottom: 20px;
}

.page-title {
  color: white;
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-title h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-title p {
  font-size: 16px;
  opacity: 0.95;
}

.detail-item-value {
  padding: 10px;
  background: #f5f5f5;
  border-radius: 5px;
  border-left: 4px solid #42a5f5;
}

.modal-content {
  border-radius: 15px;
  border: none;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.modal-header {
  background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
  border-radius: 15px 15px 0 0;
  border: none;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-title {
  color: white;
  font-weight: 600;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.item-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}

.item-card:hover {
  border-color: #42a5f5;
  box-shadow: 0 5px 15px rgba(66, 165, 245, 0.2);
}

.item-name {
  font-weight: 600;
  color: #1565c0;
  font-size: 13px;
  margin-bottom: 8px;
}

.item-quantity {
  font-size: 24px;
  font-weight: 700;
  color: #f57c00;
}

.item-unit {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.filter-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Transparent table styling */
.alert .table,
.alert .table tbody,
.alert .table tbody tr,
.alert .table tbody td {
  background-color: transparent !important;
}

/* Form card styling sesuai tema */
.form-card,
.staf-info {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.form-card h5 {
  color: #1565c0;
  font-weight: 700;
}

.form-card strong {
  color: #1565c0;
  font-weight: 600;
}

.form-card .text-primary {
  color: #0d47a1 !important;
  font-weight: 500;
}

/* Styling untuk search form */
#searchForm {
  flex-direction: column;
}

#searchForm .form-control {
  border-radius: 8px;
  border: 2px solid #bbdefb;
  padding: 12px 15px;
  font-size: 16px;
  transition: all 0.3s ease;
}

#searchForm .form-control:focus {
  border-color: #42a5f5;
  box-shadow: 0 0 0 0.2rem rgba(66, 165, 245, 0.25);
  background-color: #f0f8ff;
}

#searchForm .btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title h1 {
    font-size: 1.8rem;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .items-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

@media (max-width: 576px) {
  #searchForm {
    flex-direction: column;
  }
  
  #searchForm .form-control,
  #searchForm .btn {
    width: 100%;
  }
}

/* ============================================ */
/* CSS dari index.php - Landing Page */
/* ============================================ */

:root {
  --pri: #5a2a82;
  --sec: #0d6efd;
}

/* Untuk index.php khusus, override body background */
.index-page {
  background: linear-gradient(135deg, rgba(13,110,253,.09), rgba(90,42,130,.09)) !important;
}

.navbar {
  background: #fff;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.hero {
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(13,110,253,.35), transparent),
    radial-gradient(900px 400px at -10% 10%, rgba(90,42,130,.35), transparent);
}

.hero .lead {
  max-width: 55ch;
}

.glass {
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.5);
}

.shadow-soft {
  box-shadow: 0 1rem 2rem rgba(0,0,0,.08);
}

.badge-soft {
  background: rgba(13,110,253,.1);
  color: #0d6efd;
  border: 1px solid rgba(13,110,253,.15);
}

.section-title {
  font-weight: 700;
}

.feature-icon {
  font-size: 2rem;
  color: var(--sec);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #f1f5ff;
  color: #0d6efd;
  border: 1px solid #e1e7ff;
}

footer a {
  color: inherit;
  text-decoration: none;
}

.step-box {
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.25);
  backdrop-filter: blur(4px);
  transition: .3s;
}

.step-box:hover {
  background: rgba(13, 110, 253, 0.18);
  border-color: rgba(13, 110, 253, 0.35);
}

/* ============================================ */
/* CSS dari carian_staf.php - Staff Search Page */
/* ============================================ */

.carian-staf-root {
  --blue: #0d6efd;
  --blue-light: #74b5ff;
  --blue-soft: #e3f1ff;
}

.carian-staf-page {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(116,181,255,0.25), transparent 60%),
    radial-gradient(800px 500px at 120% 20%, rgba(13,110,253,0.18), transparent 50%),
    linear-gradient(180deg, rgba(227,241,255,0.35), rgba(255,255,255,0.85));
  min-height: 100vh;
  backdrop-filter: blur(2px);
}

.brand-hero {
  background: linear-gradient(135deg, rgba(13,110,253,0.9), rgba(116,181,255,0.85));
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(13,110,253,0.35);
}

.search-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(13,110,253,0.15);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(13,110,253,0.12);
  backdrop-filter: blur(4px);
}

.btn-gradient {
  background-image: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  border: none;
  box-shadow: 0 6px 14px rgba(13,110,253,0.35);
}

.btn-gradient:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(13,110,253,0.45);
  color: #fff;
}

.footer-note {
  color: #0d6efd;
  opacity: .75;
}

.hide {
  display: none !important;
}

/* Jadual hasil */
.carian-staf-page table thead th {
  background: linear-gradient(180deg, rgba(13,110,253,0.10), rgba(116,181,255,0.05));
  border-bottom: 2px solid rgba(13,110,253,0.25) !important;
  white-space: nowrap;
}

.carian-staf-page table tbody td {
  vertical-align: middle;
}

/* ============================================ */
/* CSS dari permohonan.php - Application Form */
/* ============================================ */

.permohonan-page {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(116,181,255,0.25), transparent 60%),
    radial-gradient(800px 500px at 120% 20%, rgba(13,110,253,0.18), transparent 50%),
    linear-gradient(180deg, rgba(227,241,255,0.35), rgba(255,255,255,0.85));
  min-height: 100vh;
  backdrop-filter: blur(2px);
}

.form-header {
  background: linear-gradient(135deg, rgba(13,110,253,0.9), rgba(116,181,255,0.85));
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(13,110,253,0.35);
}

.form-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(13,110,253,0.15);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(13,110,253,0.12);
  backdrop-filter: blur(4px);
}

.staf-info {
  background: linear-gradient(135deg, rgba(227,241,255,0.95), rgba(227,241,255,0.85));
  border-left: 4px solid #0d6efd;
  border-radius: 8px;
}

.btn-gradient {
  background-image: linear-gradient(135deg, #0d6efd, #74b5ff);
  color: #fff;
  border: none;
  box-shadow: 0 6px 14px rgba(13,110,253,0.35);
}

.btn-gradient:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 18px rgba(11, 76, 175, 0.5);
  color: #fff;
}

.form-label {
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 1px solid rgba(13,110,253,0.25);
  border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

.footer-note {
  color: #0d6efd;
  opacity: .75;
}