/* ============================================================
   main.css — CSS Utama, Variables, Komponen, Animasi
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  --color-primer    : #2D6CDF;
  --color-sekunder  : #1A9E74;
  --color-danger    : #E53E3E;
  --color-warning   : #D97706;
  --color-info      : #6C63FF;
  --color-dark      : #1E293B;
  --color-gray      : #64748B;
  --color-bg        : #F8FAFC;
  --color-white     : #FFFFFF;
  --color-border    : #E2E8F0;
  --shadow-sm       : 0 1px 3px rgba(0,0,0,0.06);
  --shadow-card     : 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg       : 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm       : 8px;
  --radius-card     : 12px;
  --radius-lg       : 16px;
  --radius-full     : 9999px;
  --transition      : all 0.2s ease;
  --bottom-nav-h    : 64px;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: transparent; /* biarkan #app-bg yang render warna/gambar */
  color: var(--color-dark);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: var(--color-primer); text-decoration: none; }

/* ─── App Shell ──────────────────────────────────────────── */
html { background: var(--color-bg); } /* fallback jika #app-bg kosong */

#app-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  /* Gradient default — diganti otomatis bila ada gambar dari Pengaturan */
  background: linear-gradient(145deg,
    #C8E6FF 0%, #DBEAFE 25%,
    #EFF6FF 55%, #F0F9FF 80%,
    #E8F4FD 100%);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

#app-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: transparent; /* tidak ada overlay — card glassmorphism cukup */
}

#app { min-height: 100vh; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
}

.card--flat {
  box-shadow: none;
  border: 1px solid var(--color-border);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary { background: var(--color-primer); color: #fff; }
.btn--primary:hover { background: #235bb8; }

.btn--secondary { background: var(--color-sekunder); color: #fff; }
.btn--secondary:hover { background: #148060; }

.btn--danger { background: var(--color-danger); color: #fff; }
.btn--danger:hover { background: #c53030; }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-primer);
  color: var(--color-primer);
}
.btn--outline:hover { background: var(--color-primer); color: #fff; }

.btn--ghost {
  background: #F1F5F9;
  color: var(--color-gray);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover { background: #E2E8F0; }

.btn--full { width: 100%; }

.btn--lg { padding: 16px 24px; font-size: 16px; border-radius: 12px; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Tombol dengan spinner loading */
.btn .spinner-btn {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .spinner-btn { display: block; }
.btn.loading .btn-text { display: none; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray);
  margin-bottom: 6px;
}

.form-label .required { color: var(--color-danger); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-dark);
  background: #fff;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primer);
  box-shadow: 0 0 0 3px rgba(45,108,223,0.1);
}

.form-control.error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}

.form-error {
  font-size: 12px;
  color: var(--color-danger);
  margin-top: 4px;
}

.form-hint {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 4px;
}

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748B' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

textarea.form-control { min-height: 80px; resize: vertical; }

/* ─── Header Mobile ─────────────────────────────────────── */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.mobile-header__left { display: flex; align-items: center; gap: 10px; }

.mobile-header__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--color-primer);
  padding: 4px;
}

.mobile-header__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-header__right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #F1F5F9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover { background: #E2E8F0; }

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ─── Bottom Navigation ─────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  display: flex;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  color: #94A3B8;
  transition: var(--transition);
  padding: 8px 4px;
}

.bottom-nav__item .nav-icon { font-size: 20px; transition: var(--transition); }

.bottom-nav__item.active {
  color: var(--color-primer);
}

.bottom-nav__item.active .nav-icon {
  transform: translateY(-2px);
}

/* ─── Page Content ───────────────────────────────────────── */
.page-content {
  padding: 12px 16px;
  padding-bottom: calc(var(--bottom-nav-h) + 16px);
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Stat Cards ─────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.stat-card__num {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

.stat-card__label {
  font-size: 11px;
  color: var(--color-gray);
  margin-top: 2px;
}

/* ─── Login Page ─────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: transparent; /* #app-bg yang tampilkan bg login */
}

.login-card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 20px;
  padding: 32px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.10);
}

.login-logo {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin: 0 auto 12px;
  background: var(--color-primer);
  padding: 8px;
  object-fit: contain;
}

.login-logo h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
}

.login-logo p {
  font-size: 13px;
  color: var(--color-gray);
}

/* ─── Profile Header ─────────────────────────────────────── */
.profile-header {
  background: linear-gradient(135deg, var(--color-primer), var(--color-sekunder));
  border-radius: var(--radius-card);
  padding: 20px 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.profile-header__info { flex: 1; min-width: 0; }

.profile-header__name {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-header__sub {
  font-size: 13px;
  opacity: 0.88;
}

/* ─── Ultah Banner ───────────────────────────────────────── */
.ultah-banner {
  background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
  border-radius: var(--radius-card);
  padding: 16px;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.ultah-banner__title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.ultah-banner__sub   { font-size: 13px; opacity: 0.9; }

/* ─── Pengajuan Item ─────────────────────────────────────── */
.pengajuan-item {
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--color-border);
  background: #fff;
  margin-bottom: 10px;
}

.pengajuan-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pengajuan-item__jenis {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-dark);
  text-transform: capitalize;
}

.pengajuan-item__detail {
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.5;
}

/* ─── Tabel Sederhana ────────────────────────────────────── */
.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.simple-table th {
  background: #F8FAFC;
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  color: var(--color-gray);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.simple-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--color-dark);
}

.simple-table tr:last-child td { border-bottom: none; }
.simple-table tr:hover td { background: #FAFBFC; }

/* ─── Absensi Tombol ─────────────────────────────────────── */
.absen-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.absen-btn {
  border: none;
  border-radius: 14px;
  padding: 20px 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.absen-btn:active { transform: scale(0.97); }

.absen-btn--masuk  { background: #EBF8EE; color: #1A9E74; }
.absen-btn--keluar { background: #FFF4E6; color: #D97706; }
.absen-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.absen-btn__icon { font-size: 32px; }
.absen-btn__label { font-size: 13px; font-weight: 600; }
.absen-btn__info  { font-size: 11px; opacity: 0.7; }

/* ─── Kamera Modal ───────────────────────────────────────── */
.kamera-modal {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.kamera-video {
  flex: 1;
  width: 100%;
  object-fit: cover;
}

.kamera-controls {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.8);
}

.kamera-capture-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.kamera-capture-btn:active { transform: scale(0.93); }

/* ─── Sidebar Admin ──────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.3s ease;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
}

.sidebar.collapsed { width: 70px; }

.sidebar__header {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar__logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
  background: var(--color-primer);
  padding: 6px;
}

.sidebar__title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.collapsed .sidebar__title { display: none; }

.sidebar__nav { flex: 1; overflow-y: auto; padding: 8px 0; }

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}

.sidebar__item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar__item.active { background: rgba(45,108,223,0.2); color: #fff; }
.sidebar__item.active .sidebar__icon { color: var(--color-primer); }

.sidebar__icon { font-size: 18px; flex-shrink: 0; width: 22px; text-align: center; }
.sidebar__label { overflow: hidden; }
.sidebar.collapsed .sidebar__label { display: none; }

.sidebar__toggle {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  transition: margin-left 0.3s ease;
  min-width: 0;
  background: transparent;
}

.sidebar.collapsed + .admin-main {
  margin-left: 70px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.admin-content { padding: 24px; }

/* ─── Stat Grid Admin ────────────────────────────────────── */
.stat-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card-admin {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-card-admin__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-card-admin__num  { font-size: 22px; font-weight: 700; color: var(--color-dark); }
.stat-card-admin__label{ font-size: 12px; color: var(--color-gray); }

/* ─── Skeleton ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

/* ─── Pengumuman ─────────────────────────────────────────── */
.pengumuman-card {
  border-left: 4px solid var(--color-primer);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.pengumuman-card--urgent { border-color: var(--color-danger); }
.pengumuman-card--penting { border-color: var(--color-warning); }

.pengumuman-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge--urgent  { background: #FFF5F5; color: #C53030; }
.badge--penting { background: #FFFAF0; color: #C05621; }
.badge--normal  { background: #EBF8FF; color: #2B6CB0; }

/* ─── Animasi ────────────────────────────────────────────── */
@keyframes spin            { to { transform: rotate(360deg); } }
@keyframes shimmer         { to { background-position: -200% 0; } }
@keyframes slideInRight    { from { transform: translateX(120%); opacity:0; } to { transform: translateX(0); opacity:1; } }
@keyframes slideOutRight   { from { transform: translateX(0); opacity:1; } to { transform: translateX(120%); opacity:0; } }
@keyframes fadeIn          { from { opacity:0; } to { opacity:1; } }
@keyframes fadeInScale     { from { opacity:0; transform:scale(.92); } to { opacity:1; transform:scale(1); } }
@keyframes slideUp         { from { transform:translateY(20px); opacity:0; } to { transform:translateY(0); opacity:1; } }
@keyframes confettiFall    { 0%{transform:translateY(-10px) rotate(0deg);opacity:1} 100%{transform:translateY(100vh) rotate(720deg);opacity:0} }
@keyframes toastBar        { from{width:100%} to{width:0} }

/* ─── Sesi 5: Polish UI ─────────────────────────────────────── */

/* Kamera modal button pulse */
#btn-shutter:active { transform: scale(0.92); }

/* GPS loading pill */
#gps-loading-indicator { animation: slideUp 0.3s ease; }

/* Error banner dalam modal kamera */
.kamera-error-popup { animation: fadeIn 0.3s ease; }

/* Tabel zebra stripe */
.simple-table tbody tr:nth-child(even) td {
  background: #FAFBFC;
}

/* Card hover subtle */
.card { transition: box-shadow 0.2s ease; }

/* Scroll indicator hint */
.page-content::-webkit-scrollbar { width: 4px; }
.page-content::-webkit-scrollbar-track { background: transparent; }
.page-content::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 4px; }

/* Badge animasi */
.rank-badge { transition: transform 0.2s ease; }
.rank-badge:hover { transform: scale(1.05); }

/* Tombol disabled state */
button:disabled { opacity: 0.55 !important; pointer-events: none; }

/* Input focus ring konsisten */
.form-control:focus { outline: none; }

/* Select searchable dropdown hover */
[data-value]:hover { background: #F0F7FF !important; }

/* Admin topbar shadow scroll */
.admin-topbar { transition: box-shadow 0.2s ease; }

/* Print media */
@media print {
  .bottom-nav, .mobile-header, .sidebar, .admin-topbar,
  .btn, .kamera-controls, #gps-loading-indicator { display: none !important; }
  .page-content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #E2E8F0; page-break-inside: avoid; }
}

/* Animasi skeleton lebih smooth */
.skeleton {
  background: linear-gradient(90deg, #EEF0F5 25%, #F6F7FA 50%, #EEF0F5 75%);
  background-size: 400% 100%;
  animation: shimmerSkeleton 1.6s ease-in-out infinite;
}
@keyframes shimmerSkeleton {
  0%   { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

/* Toast container top padding untuk notch */
#toast-container {
  padding-top: env(safe-area-inset-top);
}

/* Foto selfie mirror effect (tampil saja, upload sudah di-flip) */
#kamera-video {
  transform: scaleX(-1);
}

/* ════════════════════════════════════════════════
   VISUAL UPDATE — Full width + Glassmorphism
   ════════════════════════════════════════════════ */

/* ── Sidebar Mobile (Android) ── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    z-index: 600 !important;
  }
  .sidebar.open {
    transform: translateX(0) !important;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 599;
  }
  .sidebar-backdrop.show {
    display: block !important;
  }
  .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .admin-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 500 !important;
  }
}

/* Background ditangani oleh #app-bg */
html, body { background: transparent; }

/* Bottom nav HARUS selalu fixed dan di paling atas */
.bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 500 !important;
}

/* Mobile header juga fixed */
.mobile-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 500 !important;
}

/* Main content scroll area - harus di bawah header dan di atas bottom nav */
#main-content {
  position: relative !important;
  z-index: 3 !important;
  overflow-y: auto !important;
}

/* Admin layout - konten nempel ke sidebar tanpa gap */
.admin-layout {
  background: transparent !important;
}
.admin-main {
  background: transparent !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}
.admin-content {
  background: transparent !important;
}

/* Card glassmorphism */
.card {
  background: rgba(255,255,255,0.75) !important;
  backdrop-filter: blur(16px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
  border: 1px solid rgba(255,255,255,0.90) !important;
  box-shadow:
    0 4px 24px rgba(30,87,210,0.07),
    0 1px 4px rgba(0,0,0,0.04) !important;
  border-radius: 16px !important;
}

/* Sidebar glassmorphism biru gelap */
.sidebar {
  background: linear-gradient(180deg,
    rgba(10,38,97,0.96) 0%,
    rgba(20,65,168,0.96) 50%,
    rgba(13,50,122,0.96) 100%) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-right: 1px solid rgba(212,160,23,0.25) !important;
}

/* Topbar glass */
.admin-topbar {
  background: rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(45,108,223,0.12) !important;
}

/* Animasi pulse untuk tombol TTD surat izin */
@keyframes pulse {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(30,95,58,0.4); }
  50%      { opacity:.92; box-shadow:0 0 0 6px rgba(30,95,58,0); }
}
