/* ===== Bottom Navigation - SUPER MINIMAL ===== */
/* ===== Bottom Navigation (FAB Center) ===== */
/* ===== Bottom Navigation - Modern ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

/* Item umum */
.nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #9aa0a6;
  font-size: 10px;
  line-height: 1;
  transition: all 0.2s ease;
}

.nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 2px;
}

/* Active */
.nav-item.active {
  color: #2563eb;
}

/* ===== HOME (CENTER) ===== */
.nav-home {
  position: relative;
  top: -8px;
}

.nav-home i {
  font-size: 26px;
}

/* Optional: sedikit efek naik saat aktif */
.nav-home.active i {
  transform: scale(1.1);
}

/* Space for content */
.page-content {
  padding-bottom: 100px;
}

/* ===== Modern Topbar ===== */
.topbar-modern {
  height: 56px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
  position: sticky;
  top: 0;
  z-index: 1100;
}

/* Brand */
.topbar-brand {
  flex: 1;
}

.brand-text {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #fcfcfc; /* slate-900 */
  display: inline-flex;
  align-items: center;
}

.brand-text span {
  margin-left: 4px;
  font-weight: 500;
  color: #ffffff; /* modern blue */
  letter-spacing: 1px;
}

/* User Info */
.topbar-user {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  backdrop-filter: blur(6px);
}

.topbar-user i {
  font-size: 16px;
}

/* Action */
.topbar-action {
  flex: 1;
  text-align: right;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn i {
  font-size: 16px;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logout-btn:active {
  transform: scale(0.95);
}

/* ===== Welcome Card ===== */
.welcome-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  margin-top: 12px;
}

.welcome-card h5 {
  margin: 0;
  font-weight: 600;
}

.welcome-card p {
  margin: 4px 0 0;
  color: #6c757d;
  font-size: 13px;
}

/* ===== Banner Slider ===== */
.banner-img {
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
}

/* ===== Floating Absen Button (CENTERED) ===== */
.fab-absen {
  position: fixed;
  bottom: 90px; /* di atas bottom nav */
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.45);
  z-index: 1200;
  transition: all 0.25s ease;
}

.fab-absen i {
  font-size: 32px;
}

.fab-absen:hover {
  transform: translateX(-50%) scale(1.08);
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.6);
}

/* ===== Quick Menu ===== */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.quick-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 6px;
  text-align: center;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.quick-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.quick-item span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
}

/* Icon Circle */
/* ===== Quick Menu (Icon 40% Smaller) ===== */
.quick-item .icon {
  width: 28px; /* dari 46px */
  height: 28px; /* dari 46px */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #ffffff;
}

.quick-item .icon i {
  font-size: 13px; /* dari 22px */
}

/* Color Variants */
.bg-blue {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}
.bg-green {
  background: linear-gradient(135deg, #16a34a, #15803d);
}
.bg-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
}
.bg-purple {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}
.bg-teal {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}

/* Mood Selector */
.mood {
  cursor: pointer;
  font-size: 28px;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.mood.active {
  opacity: 1;
  transform: scale(1.2);
}

/* FIX LEAFLET MAP */
#map {
  width: 100%;
  height: 260px;
  min-height: 260px;
  background: #e5e7eb; /* agar terlihat walau map gagal */
  border-radius: 14px;
}

/* Preview selfie lebih kecil (±50%) */
.preview-selfie {
  max-height: 120px; /* sebelumnya ±220px */
  margin: 0 auto;
  display: block;
}

.user-name {
  font-weight: 600;
  color: #1e40af;
}

.table-absen td {
  font-size: 13px;
  padding: 6px 8px;
}

/* BERI RUANG UNTUK BOTTOM NAV */
.page-container {
  padding-bottom: 70px; /* sesuaikan tinggi bottom-nav */
}

.filter-select {
  width: 90px;
  text-align: center;
}

.filter-btn {
  width: 36px;
  height: 36px;
  padding: 0;
}

.banner-img {
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e9ecef;
  background-color: #f8f9fa;
}

/* Info list */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f1f1f1;
  font-size: 13px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  color: #6c757d;
}

.info-row .value {
  font-weight: 500;
  text-align: right;
}

/* =========================
   LOGIN PAGE – ENTERPRISE
========================= */

.login-page {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #f8f9fb;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* HEADER */
.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #4f9cff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: #fff;
  font-size: 28px;
}

.login-header h5 {
  font-weight: 600;
}

.login-header small {
  color: #6c757d;
}

/* FORM */
.form-label {
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 4px;
}

.form-control-lg {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
}

.toggle-password {
  cursor: pointer;
  background: #f1f3f5;
  border-radius: 0 10px 10px 0;
}

/* FOOTER */
.login-footer {
  text-align: center;
  margin-top: 18px;
}

.login-footer a {
  font-size: 13px;
  text-decoration: none;
  color: #0d6efd;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ===== PASSWORD RULES ===== */
.password-rules {
  display: flex;
  flex-wrap: wrap; /* tetap rapi di layar kecil */
  gap: 10px 16px;
  list-style: none;
  padding-left: 0;
  font-size: 12px;
}

.password-rules li {
  white-space: nowrap; /* cegah teks turun ke baris baru */
}

/* status */
.password-rules .invalid {
  color: #dc3545;
}

.password-rules .valid {
  color: #198754;
}

/* LOGIN LOGO VARIANT */
.login-logo.bg-success {
  background: linear-gradient(135deg, #198754, #3cb371);
}

.admin-footer {
  border-top: 1px solid #e9ecef;
  padding: 24px 0;
  margin-top: 48px;
  color: #6c757d;
  font-size: 13px;
}

.clickable-card {
  transition: 0.2s ease-in-out;
  cursor: pointer;
}

.clickable-card:hover {
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: #0d6efd;
}

.clickable-card:hover {
  background-color: #f5f9ff;
}

.banner-slide {
  background: linear-gradient(135deg, #0d6efd, #20c997);
  color: white;
}

.banner-content {
  padding: 30px;
  max-width: 900px;
  margin: auto;
}

.banner-content h5 {
  font-weight: 700;
  margin-bottom: 10px;
}

.banner-content p {
  font-size: 14px;
  margin: 0;
}

/* area slide */
#bannerCarousel .carousel-item {
  min-height: 140px; /* semula 200px → sekarang lebih ramping */
  background: linear-gradient(135deg, #0d6efd, #20c997);
  color: white;
  border-radius: 14px; /* sudut melengkung */
  overflow: hidden; /* supaya radius rapi */
  margin-bottom: 5px; /* jarak kecil dengan konten bawah */
}

/* isi teks */
#bannerCarousel .banner-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 22px; /* padding disesuaikan agar tetap rapi */

  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* judul */
#bannerCarousel h5 {
  font-weight: 700;
  margin-bottom: 6px;
}

/* teks */
#bannerCarousel p {
  margin: 0;
  font-size: 13px;
}

/* ==============================
   FLATPICKR - SIZE ADJUSTMENT
   ============================== */
/* 
.flatpickr-calendar {
  font-size: 12px;
  transform: scale(1);
  transform-origin: top left;
}

.flatpickr-day {
  height: 32px;
  line-height: 32px;
  max-width: 32px;
}

.flatpickr-weekday {
  font-size: 11px;
}

.flatpickr-months {
  padding: 4px 0;
}

.flatpickr-current-month {
  font-size: 13px;
}

.flatpickr-time {
  font-size: 12px;
} */
