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

/* === Neue Montreal Local Font === */
@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === CSS Variables === */
:root {
  --primary: #8b1a1a;
  --primary-dark: #6b1010;
  --primary-light: #a52a2a;
  --gold: #c5a55a;
  --gold-light: #d4b96e;
  --gold-dark: #a88b3d;
  --bg: #faf8f5;
  --bg-alt: #f3ede6;
  --card: rgba(255, 255, 255, 0.9);
  --text: #2c1810;
  --text-light: #6b5b4f;
  --text-muted: #9b8e84;
  --border: transparent;
  --border-light: rgba(139, 26, 26, 0.1);
  --border-glass: inset 0 0 0 1px rgba(139, 26, 26, 0.08);
  --success: var(--gold-dark);
  --success-bg: rgba(197, 165, 90, 0.12);
  --danger: var(--primary);
  --danger-bg: rgba(139, 26, 26, 0.08);
  --warning: #d4b96e;
  --warning-bg: rgba(212, 185, 110, 0.12);
  --info: #6b5b4f;
  --info-bg: #faf8f5;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Reset & Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Neue Montreal", "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Neue Montreal", "Inter", sans-serif;
  line-height: 1.3;
}

/* === Header === */
.header {
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%);
  color: white;
  padding: 0;
  box-shadow: 0 4px 20px rgba(107, 16, 16, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 3px solid var(--gold);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.header h1,
.header h2 {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.header h1 {
  font-size: 22px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.header h2 {
  font-size: 16.5px;
  /* Lebar font diperkecil 25% dari 22px */
  color: var(--primary);
}

/* === Navigation === */
.nav-menu {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.8px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
  font-family: "Neue Montreal", "Inter", sans-serif;
  position: relative;
}

/* Dot indicator base (hidden by default) */
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

/* Active page: faded gold dot (always visible) */
.nav-menu a.active::after {
  transform: translateX(-50%) scale(1);
  opacity: 0.45;
}

/* When hovering nav-menu, hide the active dot (dot "moves" to hovered item) */
.nav-menu:hover a.active::after {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

/* But if hovering the active link itself, keep its dot visible */
.nav-menu a.active:hover::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* Hover on any link: solid gold dot */
.nav-menu a:hover::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.nav-menu a:hover {
  background: rgba(197, 165, 90, 0.25);
  color: white;
  border-color: rgba(197, 165, 90, 0.4);
}

.nav-menu a.active {
  background: var(--gold);
  color: var(--primary-dark);
  font-weight: 600;
  border-color: var(--gold);
}

/* === User Menu === */
.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info {
  text-align: right;
}

.user-name {
  font-weight: 600;
  color: white;
  font-size: 14px;
}

.user-role {
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 500;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-logout:hover {
  background: var(--danger);
  border-color: var(--danger);
}

.btn-login-header {
  background: var(--gold);
  color: var(--primary-dark);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-login-header:hover {
  background: var(--gold-light);
}

/* === Container === */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 25px 20px;
}

/* === Page Header === */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-header h2 {
  font-size: 22px;
  color: var(--primary);
  border-left: 4px solid var(--gold);
  padding-left: 15px;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* === Search Box === */
.search-box {
  padding: 10px 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  width: 250px;
  font-size: 14px;
  transition: var(--transition);
  background: white;
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.search-box:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.3);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-success {
  background: var(--success);
}

.btn-success:hover {
  background: #1b5e20;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-danger {
  background: var(--primary-light);
}

.btn-danger:hover {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.3);
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-warning:hover {
  background: #bf360c;
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3);
}

.btn-print {
  background: var(--primary-light);
}

.btn-print:hover {
  background: var(--primary);
}

.btn-export {
  background: var(--gold-dark);
  color: white;
}

.btn-export:hover {
  background: #8b7530;
  box-shadow: 0 4px 12px rgba(168, 139, 61, 0.3);
}

/* === Cards === */
.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow), var(--border-glass);
  border: 1px solid transparent;
  margin-bottom: 20px;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 15px 35px rgba(168, 139, 61, 0.15),
    0 5px 15px rgba(168, 139, 61, 0.1);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  font-family: "Neue Montreal", "Inter", sans-serif;
}

/* === Tables === */
.table-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid transparent;
}

/* Global Table Scrollbar Override */
.table-wrapper[class*="-scroll-container"] {
  scrollbar-width: thin !important;
  scrollbar-color: var(--gold) rgba(197, 165, 90, 0.1) !important;
}

.table-wrapper[class*="-scroll-container"]::-webkit-scrollbar {
  display: block !important;
  width: 8px !important;
  height: 8px !important;
}

.table-wrapper[class*="-scroll-container"]::-webkit-scrollbar-track {
  background: rgba(197, 165, 90, 0.1) !important;
  border-radius: 4px !important;
}

.table-wrapper[class*="-scroll-container"]::-webkit-scrollbar-thumb {
  background: var(--gold) !important;
  border-radius: 4px !important;
}

.table-wrapper[class*="-scroll-container"]::-webkit-scrollbar-thumb:hover {
  background: #b8860b !important;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-alt);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 2px solid var(--gold);
  font-family: "Neue Montreal", "Inter", sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  /* optional but looks good */
}

.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

/* Memastikan kolom aksi (tombol Edit/Hapus) tidak menurun (wrap) ketika kolom lain membesar */
.table td.no-print,
.table th.no-print,
.table td:has(.btn) {
  white-space: nowrap;
  width: 1%;
}

.table tbody tr:hover {
  background: rgba(197, 165, 90, 0.06);
}

.table tbody tr {
  transition: background 0.2s ease;
}

/* === Badges === */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.badge.success {
  background: var(--success-bg);
  color: var(--success);
}

.badge.danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge.info {
  background: var(--info-bg);
  color: var(--info);
}

/* === Alerts === */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid;
}

.alert.success,
.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border-left-color: var(--success);
}

.alert.error,
.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border-left-color: var(--danger);
}

.close-alert {
  cursor: pointer;
  font-size: 18px;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.close-alert:hover {
  opacity: 1;
}

/* === Modals === */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 24, 16, 0.5);
  backdrop-filter: blur(4px);
  overflow: hidden;
  /* Hilangkan scrollbar di luar modal */
  padding: 0 15px;
  /* Jarak aman di layar kecil */
}

.modal-content {
  background: var(--card);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 100%;
  max-width: 600px;
  width: calc(100% - 30px);
  /* fallback for small screens */
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(44, 24, 16, 0.25);
  overflow: hidden;
  animation: modalSlide 0.3s ease;

  /* Flexbox untuk scrollbar di dalam */
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Jika ada form yang membungkus body dan footer */
.modal-content>form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

@keyframes modalSlide {
  from {
    transform: translate(-50%, calc(-50% - 30px));
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%);
  color: white;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--gold);
}

.modal-header h3 {
  font-size: 18px;
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.modal-header .close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Custom scrollbar inside modals */
.modal-body::-webkit-scrollbar {
  display: block;
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(197, 165, 90, 0.5);
  /* semi-transparent gold */
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.modal-footer {
  padding: 15px 25px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* === Forms === */
.form-group {
  margin-bottom: 18px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  font-family: "Neue Montreal", "Inter", sans-serif;
  background: white;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* === Dashboard Specific === */
.page-title {
  color: var(--primary);
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 32px;
  padding: 30px;
  box-shadow: var(--shadow), var(--border-glass);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
  border: 1px solid transparent;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 15px 35px rgba(168, 139, 61, 0.15),
    0 5px 15px rgba(168, 139, 61, 0.1);
}

.stat-card .icon {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.stat-card .icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-card .label {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.stat-card .value {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-family: "Neue Montreal", "Inter", sans-serif;
  letter-spacing: -1.5px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
  margin-bottom: 25px;
}

.chart-container {
  position: relative;
  height: 350px;
}

/* KUB Stat Items */
.kub-stat-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.kub-stat-item:last-child {
  border-bottom: none;
}

.kub-stat-item:hover {
  background: rgba(197, 165, 90, 0.06);
}

.kub-stat-item .name {
  font-weight: 600;
  color: var(--primary);
}

.kub-stat-item .stats {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: var(--text-light);
}

/* Iuran Widget */
.iuran-widget {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.iuran-chart-container {
  position: relative;
  width: 180px;
  height: 180px;
}

.iuran-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.iuran-percentage .value {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
}

.iuran-percentage .label {
  font-size: 12px;
  color: var(--text-light);
}

.iuran-details {
  flex: 1;
  min-width: 200px;
}

.iuran-stat {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.iuran-stat:last-child {
  border-bottom: none;
}

.iuran-stat .label {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.iuran-stat .value {
  font-weight: 600;
  color: var(--text);
}

.iuran-stat .value.paid {
  color: var(--success);
}

.iuran-stat .value.unpaid {
  color: var(--danger);
}

.iuran-stat .value.amount {
  color: var(--primary);
}

/* Activity Items */
.activity-item {
  display: flex;
  gap: 15px;
  padding: 15px 10px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.activity-item:hover {
  background: rgba(197, 165, 90, 0.06);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-date {
  min-width: 60px;
  text-align: center;
  padding: 8px;
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%);
  border-radius: var(--radius-sm);
  color: white;
}

.activity-date .day {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.activity-date .month {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold-light);
}

.activity-info {
  flex: 1;
}

.activity-info .title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.activity-info .meta {
  font-size: 13px;
  color: var(--text-light);
}

.activity-info .kub-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  font-size: 11px;
  margin-top: 5px;
  color: var(--primary);
  font-weight: 500;
}

.no-activity {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.no-activity .icon {
  font-size: 48px;
  margin-bottom: 10px;
}

/* === Login / Register Pages === */
body.auth-page {
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-card,
.register-card {
  background: var(--card);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 15px 40px rgba(44, 24, 16, 0.3);
  width: 100%;
  max-width: 420px;
  border-top: 4px solid var(--gold);
}

.login-header,
.register-card .header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h2,
.register-card .header h2 {
  color: var(--primary);
  margin-bottom: 8px;
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.login-header p,
.register-card .header p {
  color: var(--text-light);
  font-size: 14px;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.btn-login:hover {
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(139, 26, 26, 0.4);
}

.btn-register {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Neue Montreal", "Inter", sans-serif;
  margin-top: 10px;
}

.btn-register:hover {
  background: var(--primary-dark);
}

.error-msg {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
  border-left: 4px solid var(--danger);
}

.register-link,
.login-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.register-link a,
.login-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover,
.login-link a:hover {
  text-decoration: underline;
}

/* === Loading Overlay === */
#loadingOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 24, 16, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(197, 165, 90, 0.3);
  border-top: 4px solid var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === Users Page Specific === */
.user-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.user-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.user-card .user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.user-card .user-details h3 {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 4px;
}

.user-card .user-details .username {
  color: var(--text-light);
  font-size: 13px;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.role-badge.admin {
  background: var(--danger-bg);
  color: var(--danger);
}

.role-badge.ketua-wilayah {
  background: var(--warning-bg);
  color: var(--warning);
}

.role-badge.ketua-kub {
  background: var(--info-bg);
  color: var(--info);
}

.role-badge.anggota {
  background: var(--success-bg);
  color: var(--success);
}

/* Users grid layout */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* === Print Styles === */
.print-header,
.print-footer {
  display: none;
}

@media print {
  body {
    background: white !important;
  }

  .header,
  .nav-menu,
  .user-menu,
  .search-box,
  .btn,
  .btn-print,
  .btn-export,
  .no-print,
  .header-actions,
  #loadingOverlay,
  .page-header,
  .modal,
  .close-alert {
    display: none !important;
  }

  .print-header,
  .print-footer {
    display: block !important;
  }

  .container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }

  .table {
    min-width: unset !important;
  }

  .table th {
    background: #f0f0f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .table td,
  .table th {
    border: 1px solid #ccc !important;
    padding: 8px !important;
  }

  .signature-space {
    height: 52px;
  }

  .signature-name {
    font-weight: bold;
    text-decoration: underline;
  }
}

/* === Responsive === */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .search-box {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .header-actions {
    flex-wrap: wrap;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 18px;
  }
}

/* === Detail Page === */
.detail-header {
  background: var(--card);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-top: 3px solid var(--gold);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.detail-item label {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-item .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

/* === Highlight Row (for user-owned KK) === */
tr.highlight-row {
  background: rgba(197, 165, 90, 0.1) !important;
}

tr.highlight-row:hover {
  background: rgba(197, 165, 90, 0.18) !important;
}

/* === Jadwal Misa Table === */
.jadwal-table th {
  background: var(--primary) !important;
  color: white !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* === Summary Table (Iuran) === */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.summary-table th {
  background: var(--bg-alt);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  font-size: 13px;
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--gold);
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.summary-table td {
  padding: 11px 14px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

.summary-table tbody tr {
  cursor: pointer;
  transition: background 0.2s;
}

.summary-table tbody tr:hover {
  background: rgba(197, 165, 90, 0.1);
}

.summary-table tbody tr:active {
  background: rgba(197, 165, 90, 0.2);
}

/* Stat card enhancements for iuran */
.stat-card h3 {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 8px;
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.stat-card .change {
  font-size: 12px;
  margin-top: 6px;
}

.stat-card .change.positive {
  color: var(--success);
}

.stat-card .change.negative {
  color: var(--danger);
}

/* Progress Bar */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--danger-bg);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), #2e7d32);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
}

/* === Pastor Cards === */
.pastor-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #fff;
  transition:
    box-shadow 0.2s,
    background 0.3s;
}

.pastor-card:last-child {
  margin-bottom: 0;
}

.pastor-card:hover {
  background: rgba(197, 165, 90, 0.08);
  box-shadow: 0 4px 12px rgba(197, 165, 90, 0.15);
}

.pastor-card h4 {
  color: var(--primary);
  font-family: "Neue Montreal", "Inter", sans-serif;
  font-size: 16px;
  margin-bottom: 6px;
}

.pastor-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 20px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}

.pastor-info div {
  padding: 4px 0;
}

.pastor-info strong {
  color: var(--text);
}

/* === Paroki Info Grid === */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.info-item {
  margin-bottom: 10px;
}

.info-item label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-item p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* === Image Carousel === */
.carousel-container {
  max-width: 1400px;
  margin: 25px auto 0;
  padding: 0 20px;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  background: var(--primary-dark);
  border-radius: var(--radius);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(139, 26, 26, 0.6);
  color: white;
  border: none;
  padding: 15px 18px;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  border-radius: var(--radius-sm);
}

.carousel-button:hover {
  background: rgba(139, 26, 26, 0.9);
}

.carousel-button.prev {
  left: 15px;
}

.carousel-button.next {
  right: 15px;
}

.carousel-indicators {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.carousel-indicator.active {
  background: var(--gold);
  border-color: white;
  transform: scale(1.2);
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(44, 24, 16, 0.8));
  color: white;
  padding: 30px 20px 15px;
  text-align: center;
}

.carousel-caption h2 {
  font-size: 22px;
  font-family: "Neue Montreal", "Inter", sans-serif;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  color: white;
}

@media (max-width: 768px) {
  .carousel-wrapper {
    height: 280px;
  }

  .carousel-caption h2 {
    font-size: 16px;
  }

  .carousel-button {
    padding: 10px 14px;
    font-size: 22px;
  }
}

@media print {
  .carousel-container {
    display: none !important;
  }
}

/* === Paroki Info Cards === */
.info-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--gold);
}

.info-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-family: "Neue Montreal", "Inter", sans-serif;
}

/* === Scrollbar Styling === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a98d4d;
  /* Warna emas sedikit gelap saat di-hover */
}

/* === Exception Scrollbars === */
.kegiatan-scroll-container {
  scrollbar-width: thin !important;
  scrollbar-color: var(--gold) transparent !important;
}

.kegiatan-scroll-container::-webkit-scrollbar {
  width: 6px !important;
}

.kegiatan-scroll-container::-webkit-scrollbar-track {
  background: transparent !important;
}

.kegiatan-scroll-container::-webkit-scrollbar-thumb {
  background: var(--gold) !important;
  border-radius: 10px !important;
}

/* === Breadcrumb === */
.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* === KK Info Card (Detail Page) === */
.kk-info {
  background: var(--card);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-top: 3px solid var(--gold);
}

.kk-info h2 {
  color: var(--primary);
  font-family: "Neue Montreal", "Inter", sans-serif;
  font-size: 20px;
}

/* === Print Card & Print Table (Paroki) === */
.print-card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.print-table {
  width: 100%;
  border-collapse: collapse;
}

.print-table th {
  background: var(--bg-alt);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
}

.print-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  font-size: 13px;
}

/* === Additional Badge Variants === */
.badge.danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge.primary {
  background: rgba(139, 26, 26, 0.1);
  color: var(--primary);
}

/* === Button Variants === */
.btn-login-header {
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--gold);
}

.btn-login-header:hover {
  background: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(139, 26, 26, 0.3);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

/* === Kepala Keluarga Row Highlight === */
tr.kepala-keluarga {
  background: rgba(197, 165, 90, 0.08) !important;
  font-weight: 500;
}

tr.kepala-keluarga:hover {
  background: rgba(197, 165, 90, 0.15) !important;
}

/* === Responsive Navbar === */
@media (max-width: 1200px) {
  .header-content {
    gap: 10px;
    padding: 12px 15px;
  }

  .header h1 {
    font-size: 18px;
  }

  .nav-menu a {
    padding: 6px 10px;
    font-size: 12px;
  }

  .user-name {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .header-content {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header h1 {
    flex: 100%;
    justify-content: center;
    text-align: center;
    margin-bottom: 5px;
  }
}

/* === Print Header Content === */
.print-header-content {
  display: none;
}

@media print {
  @page {
    margin-top: 1cm;
    margin-bottom: 1cm;
  }

  .header,
  .floating-menu-btn,
  .fixed-nav,
  .fixed-nav-backdrop,
  .breadcrumb,
  .stats-grid,
  .carousel-container,
  .btn-print,
  .btn-export,
  .header-actions {
    display: none !important;
  }

  .print-header-content {
    display: block !important;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
  }

  .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .kk-info {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    border-top: none !important;
  }

  .print-card,
  .card,
  .stat-card {
    box-shadow: none !important;
    border: none !important;
  }
}

/* === Active Print Section (Paroki) === */
.active-print {
  display: block !important;
}

@media print {
  .active-print .print-header {
    display: block !important;
  }

  .table th,
  .print-table th,
  .active-print .print-table th {
    background: #f0f0f0 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* === Font Awesome Fallback (Users Page) === */
.fas {
  font-style: normal;
}

/* ============================================================
   SHARED NAVBAR & PANEL MENU — Dennis Snellenberg Style
   Source: dashboard.php (sumber utama)
   Dipakai oleh semua halaman via <link rel="stylesheet" href="style.css">
   ============================================================ */

/* --- Snellenberg Header Override --- */
.header {
  background: transparent !important;
  box-shadow: none !important;
  position: absolute !important;
  top: 20px !important;
  left: 0;
  width: 100%;
  z-index: 99 !important;
  border-bottom: none !important;
  padding: 0 40px !important;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  color: var(--primary) !important;
  text-shadow: none !important;
  font-size: 20px !important;
  cursor: pointer;
  margin: 0;
  display: inline-block;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: var(--primary) !important;
  border: none !important;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease !important;
  display: inline-block;
  font-weight: 500 !important;
  background: transparent !important;
  text-decoration: none;
}

.nav-hover-dot {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
  z-index: 10;
}

.user-name {
  color: var(--text) !important;
  font-weight: 700 !important;
}

.user-role {
  color: var(--primary) !important;
}

.btn-logout {
  background: transparent !important;
  color: var(--danger) !important;
  transition: all 0.3s ease !important;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}

.btn-logout:hover {
  opacity: 0.7;
}

/* ============================================================
   BASE CREATE HAMBURGER MENU — 100% REPLICA
   ============================================================ */

/* --- Hamburger Button (Fixed white circle) --- */
.bc-hamburger {
  position: fixed;
  top: 25px;
  right: 30px;
  width: 3em;
  /* 48px at 16px base */
  height: 3em;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1010;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Hidden by default, shown on scroll via GSAP */
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
}

.bc-hamburger-bg {
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.3s ease;
}

/* Hover: subtle scale pulse (only when closed) */
body:not(.nav-active) .bc-hamburger:hover .bc-hamburger-bg {
  transform: scale(1.06);
}

/* When open: bg becomes transparent so X sits on the card */
body.nav-active .bc-hamburger-bg {
  background-color: transparent;
  box-shadow: none;
}

/* --- Hamburger Bars --- */
.bc-hamburger-bars {
  position: relative;
  width: 40%;
  /* ~19px of 48px — matches Base Create's proportions */
  height: 0.3em;
  /* gap region */
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bc-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: #1a1a1a;
  border-radius: 1px;
  transition: transform 0.7s cubic-bezier(0.7, 0, 0.3, 1),
    background-color 0.3s ease;
  transform-origin: center;
}

.bc-bar-1 {
  transform: translateY(-0.15em);
}

.bc-bar-2 {
  transform: translateY(0.15em);
}

/* Hover: bars converge (only when closed) */
body:not(.nav-active) .bc-hamburger:hover .bc-bar-1 {
  transform: translateY(-0.05em);
}

body:not(.nav-active) .bc-hamburger:hover .bc-bar-2 {
  transform: translateY(0.05em);
}

/* Active: X morphing */
body.nav-active .bc-bar-1 {
  transform: translateY(0) rotate(45deg);
}

body.nav-active .bc-bar-2 {
  transform: translateY(0) rotate(-45deg);
}

/* --- Backdrop Overlay --- */
.bc-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1007;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.7, 0, 0.3, 1);
}

body.nav-active .bc-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* --- Menu Container (clip-path circle expansion) --- */
.bc-menu-container {
  position: fixed;
  top: 15px;
  right: 20px;
  width: 300px;
  border-radius: 28px;
  z-index: 1008;
  pointer-events: none;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  /* Hamburger center relative to container:
     Hamburger: top=25px right=30px, size=48px → center at (25+24)=49px from viewport top, (30+24)=54px from viewport right
     Container: top=15px right=20px → offset = 49-15=34px from container top, 54-20=34px from container right
     clip-path origin: calc(100% - 34px) 34px */
  clip-path: circle(0% at calc(100% - 34px) 34px);
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.3, 1);
}

body.nav-active .bc-menu-container {
  pointer-events: auto;
  clip-path: circle(150% at calc(100% - 34px) 34px);
}

/* bg-circle element is kept in DOM but no longer needed for animation */
.bc-menu-bg-circle {
  display: none;
}

/* --- Menu Content --- */
.bc-menu-content {
  position: relative;
  z-index: 2;
  padding: 28px 30px 30px 30px;
  opacity: 0;
  transition: opacity 0.15s ease 0s;
}

body.nav-active .bc-menu-content {
  opacity: 1;
  transition: opacity 0.3s ease 0.25s;
}

/* --- Menu Header --- */
.bc-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.bc-menu-label {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.4);
  font-family: "Neue Montreal", "Inter", sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* --- Menu Nav Links --- */
.bc-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bc-menu-link {
  font-size: 24px;
  font-weight: 450;
  color: #1a1a1a;
  text-decoration: none;
  font-family: "Neue Montreal", "Inter", sans-serif;
  line-height: 1.4;
  display: flex;
  align-items: center;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease, opacity 0.3s ease;
  /* Stagger: each link slides up with a delay */
  transform: translateY(15px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1),
    opacity 0.5s cubic-bezier(0.7, 0, 0.3, 1),
    color 0.3s ease;
}

/* Stagger delays for each link (up to 10 links) */
body.nav-active .bc-menu-link:nth-child(1) {
  transition-delay: 0.20s;
}

body.nav-active .bc-menu-link:nth-child(2) {
  transition-delay: 0.24s;
}

body.nav-active .bc-menu-link:nth-child(3) {
  transition-delay: 0.28s;
}

body.nav-active .bc-menu-link:nth-child(4) {
  transition-delay: 0.32s;
}

body.nav-active .bc-menu-link:nth-child(5) {
  transition-delay: 0.36s;
}

body.nav-active .bc-menu-link:nth-child(6) {
  transition-delay: 0.40s;
}

body.nav-active .bc-menu-link:nth-child(7) {
  transition-delay: 0.44s;
}

body.nav-active .bc-menu-link:nth-child(8) {
  transition-delay: 0.48s;
}

body.nav-active .bc-menu-link:nth-child(9) {
  transition-delay: 0.52s;
}

body.nav-active .bc-menu-link:nth-child(10) {
  transition-delay: 0.56s;
}

body.nav-active .bc-menu-link {
  transform: translateY(0);
  opacity: 1;
}

/* Closing: all links animate out simultaneously (no stagger) */
body:not(.nav-active) .bc-menu-link {
  transition-delay: 0s;
}

/* Hover: link goes slightly transparent */
.bc-menu-link:hover {
  opacity: 0.5;
}

/* Active link: grayed out with dot indicator */
.bc-menu-link.is-active {
  color: #b0b0b0;
  pointer-events: none;
}

.bc-menu-link.is-active .bc-link-text {
  position: relative;
}

.bc-menu-link.is-active .bc-link-text::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 50%;
  margin-left: 12px;
  vertical-align: middle;
  opacity: 0.45;
}

/* Hover dot for NON-active links */
.bc-menu-link:not(.is-active) .bc-link-text {
  position: relative;
}

.bc-menu-link:not(.is-active) .bc-link-text::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 50%;
  margin-left: 12px;
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bc-menu-link:not(.is-active):hover .bc-link-text::after {
  opacity: 1;
}

/* Auth link (Login/Logout) — smaller, separated */
.bc-menu-link.bc-auth-link {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  opacity: 0;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.nav-active .bc-menu-link.bc-auth-link {
  opacity: 0.6;
}

.bc-menu-link.bc-auth-link:hover {
  opacity: 1;
}

/* State when menu is open */
body.nav-active {
  overflow: hidden;
}

/* === Pagination === */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination-controls button {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(168, 139, 61, 0.2);
  background: white;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Neue Montreal", "Inter", sans-serif;
}

.pagination-controls button:hover:not(:disabled):not(.active) {
  background: rgba(197, 165, 90, 0.1);
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-1px);
}

.pagination-controls button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(139, 26, 26, 0.25);
}

.pagination-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-controls .page-ellipsis {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
}

.pagination-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.pagination-per-page select {
  padding: 6px 10px;
  border: 1px solid rgba(168, 139, 61, 0.2);
  border-radius: 10px;
  background: white;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Neue Montreal", "Inter", sans-serif;
  transition: all 0.3s ease;
}

.pagination-per-page select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

/* Barba Transition Screen */
.transition-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--primary);
  z-index: 9999;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
}