/* ====== ROOT & BACKGROUND ====== */
:root {
  --base-start: #edf2f7;
  --base-end: #e2e8f0;
  --pattern-opacity: 0.35;
  --primary: #2D4159;
  --primary-dark: #1a2c3f;
}

/* Untuk halaman login (kontennya biasanya di tengah layar, footer ikut normal) */
body.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.login-page main.login-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center; /* bikin box login ketengah */
}

.container {
  flex: 1;
}


html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--base-start), var(--base-end));
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("background.webp") no-repeat center center fixed;
  background-size: cover;
  filter: blur(5px) brightness(1);
  z-index: -1;
}

.brand-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

/* ====== LOGIN SECTION ====== */
.login-section {
   display: flex;
   flex: 1;
  justify-content: center; /* horizontal center */
  align-items: flex-start; /* vertical start, bisa diganti 'center' kalau mau benar-benar di tengah */
  padding: 2rem 1rem;
}

.login-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 1.5rem;
  padding: 3rem;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(45,65,89,0.15);
  backdrop-filter: blur(10px);
}

.infografis-box {
  flex: 7; /* proporsi 70% */
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 1rem;
}

.login-box {
  flex: 3; /* proporsi 30% */
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(45,65,89,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 250px; /* lebar minimal */
}

.login-box a {
  text-decoration: none;
}

.login-box h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 80%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;

  border: none;
  border-radius: 8px;

  background: rgba(170, 194, 233, 0.25); /* biru google tapi transparan */
  color: #4285F4;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.google-login-btn i {
  font-size: 18px;
}

.google-login-btn:hover {
  background: rgba(122, 167, 240, 0.25);
}

.table-responsive {
    padding: 0;
    margin: 0;
}
.table tbody td {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.table {
    margin-bottom: 0;
}

/* ====== FORM ELEMENTS ====== */
.login-box input {
  border-radius: 8px;
  border: 1px solid #cbd5e0;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  width: 100%;
  transition: all 0.2s;
}

.login-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,65,89,0.15);
}

.login-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.25rem;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.2s;
}

.login-box button:hover {
  background: var(--primary-dark);
}

.footer-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;        /* jarak antar tombol */
    padding: 0 1.5rem;  /* jarak dari pinggir container */
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
    max-width: 95%;
    padding: 2rem;
    height: auto; /* biar nggak kepotong di layar kecil */
  }

  .login-box {
    margin-top: 1rem;
  }
}


/* Semua tombol paginasi */
/* Pagination DataTables */
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: #2D4159 !important;  /* Warna aktif */
    border-color: #2D4159 !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    color: #2D4159 !important;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .page-link:hover {
    background-color: #f0f0f0 !important;  /* Hover */
    color: #2D4159 !important;
}

/* Wrapper global */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/* Card di dashboard */
.dashboard-card {
    background: #f8fafc;
    border: 0;
    border-radius: 1rem; /* rounded-4 */
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
     overflow: hidden;
}

/* Header card */
.dashboard-card-header {
    background: #2D4159 !important;
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.dashboard-card .card-footer {
  border-top: none !important;
}

.btn-custom {
    background: #2D4159 !important;
    border: none !important;
    color: #fff !important; /* biar teks putih */
}

.btn-custom:hover {
    background: #3a4d6f !important; /* warna saat hover */
}

/* Card khusus untuk warning tagihan */
.card-warning {
    background: #eed9d9 !important;
    margin: 0 auto;
    border-radius: 1rem; /* biar sama kayak rounded-4 */
    overflow: hidden;
}

/* Header card warning */
.card-warning .card-header {
    background: #d12c2c !important;
    color: #fff  !important;
    font-weight: 500;
    font-size: 1.1rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.badge-custom {
    background-color: #cc6b10 !important;
    color: #fff;  
    font-weight: 500;
}

.modal-header.custom-header {
    background-color: #2D4159 !important; /* ungu */
    color: #fff !important;
}


.timeline {
  position: relative;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 2px solid #dee2e6; /* garis vertikal */
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 0;
  width: 12px;
  height: 12px;
  background-color: #0d6efd; /* warna lingkaran (biru bootstrap) */
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #dee2e6;
}


.badge-dark-success {
    background-color: #219c55;
    color: #fff;
}
.badge-dark-primary {
    background-color: #0d6efd; 
    color: #fff;
}
.badge-dark-secondary {
    background-color: #6c757d; 
}

.badge-dark-danger {
    background-color: #b41e1e;
    color: #fff;
}


