/**
 * PMB STIKMA - Modern Elegant Background & UI Conditioning
 * Upgraded from legacy tiled patterns to responsive, high-DPI ambient mesh gradients.
 */

:root {
  --bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-border: rgba(226, 232, 240, 0.85);
  --bg-card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --bg-card-shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
  --pmb-blue: #0284c7;
  --pmb-blue-dark: #0369a1;
  --pmb-indigo: #6366f1;
  --pmb-emerald: #10b981;
}

/* ==========================================================================
   1. Base Body & Layout Styling
   ========================================================================== */
body {
  min-height: 100vh;
  color: #1e293b;
  background-color: var(--bg-surface);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Container Padding & Spacing */
body > .container {
  padding-top: 20px;
  padding-bottom: 40px;
  min-height: calc(100vh - 280px);
}

/* ==========================================================================
   2. Conditioned Background Presets
   ========================================================================== */

/* Preset A: .gplay (Digunakan pada Login, Daftar, Pembiayaan, Syarat, Kontak) */
body.gplay {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(14, 165, 233, 0.07) 0px, transparent 50%),
    radial-gradient(rgba(148, 163, 184, 0.18) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 24px 24px;
  background-attachment: fixed;
}

/* Preset B: .escheresque (Digunakan pada Dashboard, Galeri, Pengumuman, Scan) */
body.escheresque {
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 100% 10%, rgba(14, 165, 233, 0.09) 0px, transparent 50%),
    radial-gradient(at 0% 80%, rgba(99, 102, 241, 0.07) 0px, transparent 50%),
    linear-gradient(to right, rgba(226, 232, 240, 0.65) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.65) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px;
  background-attachment: fixed;
}

/* Preset C: .seigaiha (Nuansa Tenang / Natural) */
body.seigaiha {
  background-color: #f8fafc;
  background-image:
    radial-gradient(at 15% 15%, rgba(16, 185, 129, 0.07) 0px, transparent 40%),
    radial-gradient(at 85% 85%, rgba(6, 182, 212, 0.08) 0px, transparent 40%),
    linear-gradient(135deg, rgba(240, 253, 250, 0.8) 0%, rgba(248, 250, 252, 0.95) 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
}

/* Preset D: .escheresque_ste (Executive Dark Accent) */
body.escheresque_ste {
  background-color: #0f172a;
  color: #f1f5f9;
  background-image:
    radial-gradient(at 80% 20%, rgba(14, 165, 233, 0.16) 0px, transparent 50%),
    radial-gradient(at 20% 80%, rgba(99, 102, 241, 0.14) 0px, transparent 50%),
    linear-gradient(to right, rgba(51, 65, 85, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 65, 85, 0.4) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
}

/* ==========================================================================
   3. Conditioning Content Cards, Panels & Forms
   ========================================================================== */

/* Modern Card Styling for Content Blocks */
.content .box-body,
.content .panel,
.content form .panel-footer,
.contact-form,
.login-box,
.card-pmb {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--bg-card_border, rgba(226, 232, 240, 0.9));
  box-shadow: var(--bg-card-shadow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.content .box-body {
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
}

.content .panel {
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.content .panel-heading {
  background: #f8fafc;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1rem 1.5rem;
  font-weight: 700;
  color: #0f172a;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.content .panel-body {
  padding: 1.5rem;
}

.content .panel-footer {
  background: #fafaf9;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1rem 1.5rem;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* Centered Form Containers (e.g. Login & Register) */
.container > .col-md-6 {
  float: none;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

/* ==========================================================================
   4. Page Header & Breadcrumb Typography
   ========================================================================== */

.page-header {
  border-bottom: none;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0;
}

.page-header h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.page-header h3::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 26px;
  background: linear-gradient(135deg, var(--pmb-blue) 0%, #38bdf8 100%);
  border-radius: 6px;
}

/* Pill-styled Breadcrumb */
.breadcrumb {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  display: inline-flex;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.breadcrumb > li + li::before {
  content: '\f105';
  font-family: 'FontAwesome';
  color: #94a3b8;
  padding: 0 10px;
}

.breadcrumb > li > a {
  color: #0284c7;
  text-decoration: none;
}

.breadcrumb > li.active {
  color: #64748b;
  font-weight: 600;
}

/* ==========================================================================
   5. Form Inputs & Interactive Controls
   ========================================================================== */

.form-control {
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  padding: 0.6rem 1rem;
  height: auto;
  font-size: 0.95rem;
  color: #1e293b;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease-in-out;
}

.form-control:focus {
  border-color: #0284c7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background-color: #ffffff;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 0.4rem;
}

/* Button Refinement */
.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.55rem 1.35rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

/* Modern Tables */
.table {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.table > thead > tr > th {
  background-color: #f8fafc;
  color: #334155;
  font-weight: 700;
  border-bottom: 2px solid #e2e8f0;
  padding: 12px 16px;
}

.table > tbody > tr > td {
  padding: 12px 16px;
  vertical-align: middle;
  border-top: 1px solid #f1f5f9;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #f8fafc;
}