/* Custom CSS for Demografik Survey Application */

/* General Styles */
body {
  background: #ffffff;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Custom badge colors */
.bg-purple {
  background-color: #6f42c1 !important;
}
.text-purple {
  color: #6f42c1 !important;
}

/* Login Page Modern Styles/* Text Gradient */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-primary-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-gradient {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-primary-dark) 100%
  );
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(
    135deg,
    var(--brand-primary-dark) 0%,
    #081f57 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 61, 145, 0.3);
}

.btn-gradient:focus {
  box-shadow: 0 0 0 0.25rem rgba(11, 61, 145, 0.25);
}

/* Floating Labels Animation */
.form-floating > label {
  color: #6c757d;
  transition: all 0.2s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--brand-primary);
  transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

.form-floating > .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(11, 61, 145, 0.25);
}

/* Card Modern Shadow */
.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Login Card Specific */
.card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
}

/* Toggle Password Button */
#togglePassword {
  z-index: 10;
  transition: all 0.2s ease;
}

#togglePassword:hover {
  color: var(--brand-primary) !important;
}

/* Form Validation States */
.form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Loading Animation */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.8s linear infinite;
}

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

.page-transition-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.page-transition-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.page-transition-loader .ptl-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-top-color: rgba(255, 255, 255, 1);
  animation: ptlSpin 0.7s linear infinite;
}

.page-transition-loader .ptl-label {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

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

.chart-box,
.chart-container {
  position: relative;
}

.chart-box:not(.chart-ready)::before,
.chart-container:not(.chart-ready)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.18) 0%, rgba(148, 163, 184, 0.28) 50%, rgba(148, 163, 184, 0.18) 100%);
  background-size: 200% 100%;
  animation: chartShimmer 1.1s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.chart-box > canvas,
.chart-container > canvas,
.chart-box .chart-canvas,
.chart-container .chart-canvas {
  position: relative;
  z-index: 1;
}

@keyframes chartShimmer {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: -200% 0%;
  }
}

/* Safe padding when header is fixed-top (logged-in pages) */
body.has-fixed-header {
  padding-top: 72px; /* compensate navbar height on desktop */
}

@media (max-width: 992px) {
  body.has-fixed-header {
    padding-top: 56px; /* typical mobile navbar height */
  }
}

/* Safe padding when fixed footer present */
body.has-fixed-footer {
  padding-bottom: 90px; /* kira-kira tinggi footer */
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.1rem; /* kecilkan lagi agar lebih ringkas */
}

/* Skala logo brand agar proporsional dengan teks */
.navbar-brand img {
  height: 48px !important;
}

/* Responsif: lebih kecil di layar sangat kecil */
@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1rem;
  }
  .navbar-brand img {
    height: 40px !important;
  }
}

/* Card Enhancements */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 0.5rem;
  transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

/* Statistics Cards */
.stats-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.stats-card .stats-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stats-card .stats-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Ensure all stats cards have the same sizing */
.stats-card,
.stats-card-2,
.stats-card-3,
.stats-card-4 {
  border-radius: 1rem;
  padding: 1.5rem;
  color: #fff;
}

/* Form Enhancements */
.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.required {
  color: #dc3545;
}

/* Button Styles */
.btn {
  border-radius: 0.375rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.15s ease-in-out;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  border: none;
}

.btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  border: none;
  color: #212529;
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border: none;
}

/* Table Enhancements */
.table {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
}

.table thead th {
  border-top: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table-dark th {
  background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

/* Progress Bars */
.progress {
  height: 0.75rem;
  border-radius: 0.375rem;
  background-color: #e9ecef;
}

.progress-bar {
  border-radius: 0.375rem;
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
}

.progress-bar.bg-success {
  background: linear-gradient(90deg, #28a745 0%, #1e7e34 100%) !important;
}

.progress-bar.bg-warning {
  background: linear-gradient(90deg, #ffc107 0%, #e0a800 100%) !important;
}

.progress-bar.bg-info {
  background: linear-gradient(90deg, #17a2b8 0%, #138496 100%) !important;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5em 0.75em;
  border-radius: 0.375rem;
}

/* Alert Enhancements */
.alert {
  border: none;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar.bg-primary {
  background-color: #020617 !important;
  background-image: none !important;
}
footer.footer-fixed.bg-primary {
  background-color: #020617 !important;
  background-image: none !important;
}

/* Ensure fixed-top navbar sits above content */
.navbar.fixed-top {
  z-index: 1030; /* above cards/modals default */
}

/* Divider between brand and menu on large screens */
@media (min-width: 992px) {
  .navbar .navbar-brand {
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    padding-right: 1rem;
    margin-right: 1rem;
  }
}

/* User avatar size normalization (applies globally) */
.user-avatar {
  width: 32px !important;
  height: 32px !important;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
  .user-avatar {
    width: 40px !important;
    height: 40px !important;
  }
}

/* Visual polish for bottom-fixed navbar */
/* Visual polish for fixed footer */
footer.footer-fixed.fixed-bottom {
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
  z-index: 1030;
}

/* Consistent header & footer height using CSS variable */
:root {
  --app-bar-height: 80px;
  --footer-height: 40px;
  --footer-logo-overlap: 80px;
  --footer-logo-height: 42px;
  --footer-logo-bob: 6px;
}

/* Header (Navbar) height normalization */
.navbar.fixed-top {
  height: var(--app-bar-height);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  align-items: center;
}
.navbar.fixed-top .container,
.navbar.fixed-top .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
}
.navbar-brand img {
  max-height: calc(var(--app-bar-height) - 28px);
}

/* Footer height normalization */
footer.footer-fixed.fixed-bottom {
  height: var(--footer-height);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  align-items: center;
}
/* Safe-area support & override for modern mobile devices */
footer.footer-fixed.fixed-bottom {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px)) !important;
}
footer.footer-fixed.fixed-bottom .container-fluid {
  height: 100%;
  display: flex;
  align-items: center;
}

/* Responsive tweaks for smaller screens */
@media (max-width: 992px) {
  :root {
    --app-bar-height: 72px; /* increased mobile navbar height */
  }
  .navbar.fixed-top {
    padding-inline: 0.5rem !important;
  }
  .navbar .navbar-brand {
    font-size: 0.95rem;
  }
  .navbar .navbar-brand img {
    height: 36px !important;
    max-height: 36px !important;
  }
  .navbar .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 0, 0, 0.08);
    color: #fff;
  }
  .navbar .navbar-toggler:focus,
  .navbar .navbar-toggler:hover {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.16);
  }
  .navbar .navbar-toggler .hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px 0;
    background-color: #fff;
    border-radius: 4px;
  }
  .navbar .navbar-toggler-label {
    margin-left: 0.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* Align content paddings with unified bar height */
body.has-fixed-header {
  padding-top: var(--app-bar-height) !important;
}
body.has-fixed-footer {
  padding-bottom: var(--footer-height) !important;
}

.nav-link {
  font-weight: 500;
  transition: color 0.15s ease-in-out;
}

.navbar.fixed-top .navbar-nav .nav-link {
  font-size: 1.15rem;
}

.nav-link:hover {
  color: #007bff !important;
}

.nav-link.active {
  color: #007bff !important;
  font-weight: 600;
}

/* Improve contrast for dark navbar links */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.navbar-dark .navbar-nav .nav-link.active {
  color: #ffc107 !important; /* accent yellow for active */
  font-weight: 700;
}

/* Mobile navbar collapse visibility fix: ensure menu & dropdowns show on phones/tablets */
@media (max-width: 992px) {
  /* Allow navbar to expand vertically when the collapse is open */
  .navbar.fixed-top {
    height: auto;
    align-items: flex-start;
  }

  /* Make collapsed area scrollable to avoid clipping on small screens */
  .navbar .navbar-collapse {
    width: 100%;
    max-height: calc(100vh - var(--app-bar-height) - var(--app-bar-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Render dropdown menus inside the flow so they aren't clipped */
  .navbar .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin: 0.25rem 0;
    border-radius: 0.5rem;
  }

  /* Improve touch targets inside collapsed navbar */
  .navbar .dropdown-item {
    padding: 0.5rem 1rem;
  }

  /* Full-width toggles for better tapping */
  .navbar .dropdown-toggle {
    width: 100%;
  }
}

/* Default header icon color: use theme variable to avoid pure white */
.navbar-dark .navbar-nav .nav-link i {
  color: var(--header-icon-color);
  font-size: 1.2em;
  line-height: 1;
  opacity: 1;
}

.nav-icon-svg {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: text-bottom;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.2s;
}
.nav-link:hover .nav-icon-svg {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

/* Footer tidy layout */
.footer-content {
  font-size: 0.8rem; /* slightly smaller for neatness */
  line-height: 1;
  min-height: var(--footer-height);
}
.footer-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-logo {
  max-height: var(--footer-logo-height);
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .stats-card .stats-number {
    font-size: 2rem;
  }

  .btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }

  .table-responsive {
    font-size: 0.875rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Custom Utilities */
.text-gradient {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }

  .btn {
    display: none;
  }
}

/* Table Enhancements */
.table-responsive {
  border-radius: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.table {
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: none;
  padding: 1rem 0.75rem;
}

.table td {
  padding: 0.875rem 0.75rem;
  vertical-align: middle;
  border-top: 1px solid #e9ecef;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

.table-light th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.gs-table {
  border-collapse: collapse;
  border: 1px solid #0b5ed7;
}
.gs-table th,
.gs-table td {
  white-space: nowrap;
  min-width: 56px;
}
.gs-table thead th {
  border-right: 1px solid #0b5ed7;
}
.gs-table thead th:last-child {
  border-right: none;
}
.gs-table thead.gs-table-head th {
  border-top: 1px solid #0b5ed7 !important;
}
.gs-table thead.gs-table-head {
  position: relative;
}
.gs-table thead.gs-table-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 1px solid #0b5ed7;
  height: 0;
  pointer-events: none;
}
.gs-table tbody td {
  border-right: 1px solid #0b5ed7;
  border-top: 0 !important;
  border-bottom: 0 !important;
}
.gs-table tbody td:first-child {
  border-left: 1px solid #0b5ed7;
}
.gs-table tbody td:last-child {
  border-right: 1px solid #0b5ed7;
}
.gs-table-head th {
  background: linear-gradient(180deg, #eaf3ff 0%, #ffffff 100%);
  color: #0b1a2b;
  border-top: 1px solid #0b5ed7;
  border-bottom: 1px solid #0b5ed7;
}
.gs-table thead.gs-table-head th:first-child {
  border-left: 1px solid #0b5ed7;
}
.gs-table thead.gs-table-head th:last-child {
  border-right: 1px solid #0b5ed7;
}
/* Ensure vertical borders across thead/tbody/tfoot for Bootstrap 5 structure */
.gs-table > :not(caption) > * > * {
  border-right: 1px solid #0b5ed7;
}
.gs-table > :not(caption) > * > *:first-child {
  border-left: 1px solid #0b5ed7;
}
.gs-table tfoot td,
.gs-table tfoot th {
  border-top: 0;
}

/* Wrapper border for entire table block */
.gs-table-box {
  border: 1px solid #0b5ed7;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Dashboard Table Specific */
.dashboard-table {
  font-size: 0.9rem;
}

.dashboard-table .badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

.dashboard-table td {
  padding: 1rem 0.75rem;
}

.chart-canvas {
  width: 100%;
  display: block;
}
.chart-canvas-line {
  height: 180px;
}
@media (max-width: 992px) {
  .chart-canvas-line {
    height: 150px;
  }
}
@media (max-width: 576px) {
  .chart-canvas-line {
    height: 130px;
  }
}
.chart-canvas-pie {
  max-width: 300px;
  margin: 0 auto;
}
@media (max-width: 576px) {
  .chart-canvas-pie {
    max-width: 220px;
  }
}
@media (min-width: 1200px) {
  .chart-canvas-pie {
    max-width: 320px;
  }
}
.chart-legend {
  font-size: 0.875rem;
}
.chart-legend li {
  margin-bottom: 0.25rem;
}
.chart-legend .color-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 2px;
}

/* Card Body Spacing */

/* ========================= */
/* Google Business Dashboard */
/* ========================= */
.gb-panel {
  background: linear-gradient(135deg, #2a8c8c 0%, #1e6d72 100%);
  color: #fff;
  border-radius: 1rem;
}
.gb-title {
  font-weight: 700;
  letter-spacing: 0.4px;
}
.gb-subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
}
.gb-metric {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}
.gb-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.gb-icon.gb-badge {
  background: rgba(255, 255, 255, 0.35);
}
.gb-icon .gb-svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.gb-icon .gb-svg line,
.gb-icon .gb-svg path,
.gb-icon .gb-svg circle {
  stroke: currentColor;
}
.gb-icon .gb-svg path {
  stroke-linecap: round;
}
.gb-icon.google-blue {
  background: #ffffff !important;
  color: #4285f4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.gb-icon.google-green {
  background: #ffffff !important;
  color: #34a853;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.gb-icon.google-yellow {
  background: #ffffff !important;
  color: #fbbc05;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.gb-icon.google-red {
  background: #ffffff !important;
  color: #ea4335;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.gb-icon.google-blue .gb-svg {
  stroke: #4285f4;
}
.gb-icon.google-green .gb-svg {
  stroke: #34a853;
}
.gb-icon.google-yellow .gb-svg {
  stroke: #fbbc05;
}
.gb-icon.google-red .gb-svg {
  stroke: #ea4335;
}
.gb-icon.google-blue.gb-badge {
  background: #ffffff !important;
}
.gb-icon.google-green.gb-badge {
  background: #ffffff !important;
}
.gb-icon.google-yellow.gb-badge {
  background: #ffffff !important;
}
.gb-icon.google-red.gb-badge {
  background: #ffffff !important;
}
.gb-value {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
}
.gb-label {
  font-size: 0.9rem;
  opacity: 0.9;
}
.gb-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.gb-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 0.08rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.gb-pill.google-blue {
  background: #4285f4;
  color: #ffffff;
}
.gb-pill.google-green {
  background: #34a853;
  color: #ffffff;
}
.gb-pill.google-yellow {
  background: #fbbc05;
  color: #0b1a2b;
}
.gb-pill.google-red {
  background: #ea4335;
  color: #ffffff;
}
.gb-tag.google-blue {
  background: rgba(66, 133, 244, 0.15);
  border: 1px solid #4285f4;
  color: #ffffff;
}
.gb-tag.google-green {
  background: rgba(52, 168, 83, 0.15);
  border: 1px solid #34a853;
  color: #ffffff;
}
.gb-tag.google-yellow {
  background: rgba(251, 188, 5, 0.18);
  border: 1px solid #fbbc05;
  color: #0b1a2b;
}
.gb-tag.google-red {
  background: rgba(234, 67, 53, 0.15);
  border: 1px solid #ea4335;
  color: #ffffff;
}
.gb-sidecard {
  background: #1e6d72;
  color: #fff;
  border-radius: 1rem;
}
.gb-topterms li span:last-child {
  font-weight: 600;
}
/* ================================ */
/* Google Business: Accessibility   */
/* Improve text readability/contrast */
.gb-panel .text-muted,
.gb-sidecard .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Stronger label/subtitle contrast on dark teal backgrounds */
.gb-subtitle,
.gb-label {
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
}

/* Make form labels and controls readable inside panel */
.gb-panel .form-label {
  color: rgba(255, 255, 255, 0.92) !important;
}
/* Use light fields with dark text in filter-modern to avoid low-contrast */
.gb-panel .filter-modern .form-control,
.gb-panel .filter-modern .form-select {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #cfe0ff;
  color: #0b1a2b;
}
.gb-panel .filter-modern .form-control::placeholder {
  color: #64748b;
}
/* Ensure dropdown list items are visible */
.gb-panel .filter-modern .form-select option,
.gb-panel .filter-modern .form-select optgroup {
  color: #0b1a2b;
  background-color: #fff;
}

/* Increase contrast for outline buttons on teal backgrounds */
.gb-panel .btn-outline-secondary {
  color: #0b1a2b !important;
  background-color: #fff;
  border-color: #fff !important;
}
.gb-panel .btn-outline-secondary:hover {
  background-color: #fff;
  color: #0b1a2b !important;
  opacity: 0.95;
}
.gb-sidecard .btn-outline-primary {
  color: #0d6efd !important;
  background-color: #fff;
  border-color: #fff !important;
}
.gb-sidecard .btn-outline-primary:hover {
  background-color: #fff;
  color: #0d6efd !important;
  opacity: 0.95;
}

/* Ensure Google icon contrasts within dark panel */
.gb-panel i.fab.fa-google {
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}
/* Colored Google logo badge before title */
.gb-google-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.gb-google-icon {
  width: 22px;
  height: 22px;
  display: block;
}
@media (max-width: 768px) {
  .gb-value {
    font-size: 1.25rem;
  }
}
.card-body.p-4 {
  padding: 1.5rem !important;
}
/* Auth (Login) Page Background */
.auth-bg {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  position: relative;
}

.auth-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 420px at 20% 10%, rgb(var(--brand-primary-rgb) / 0.08), transparent 62%);
  pointer-events: none;
}

.auth-shell--split .container {
  max-width: 1180px;
}

.auth-split-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.12);
}

@media (min-width: 992px) {
  .auth-split-card {
    grid-template-columns: 1.35fr 0.95fr;
    min-height: 620px;
  }
}

.auth-split-left {
  position: relative;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(238, 242, 247, 0.95) 100%);
}

.auth-split-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(840px 420px at 18% 18%, rgb(var(--brand-primary-rgb) / 0.20), transparent 60%),
    radial-gradient(620px 320px at 78% 60%, rgba(16, 185, 129, 0.14), transparent 58%);
  pointer-events: none;
}

.auth-split-left::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 128px;
  height: 128px;
  border-radius: 18px;
  background: repeating-linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0 6px, rgba(37, 99, 235, 0.00) 6px 12px);
  opacity: 0.35;
  pointer-events: none;
}

.auth-hero {
  position: relative;
  height: 100%;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
}

.auth-hero-copy {
  max-width: 54ch;
}

.auth-hero-title {
  font-weight: 900;
  letter-spacing: 0.1px;
  color: rgba(2, 6, 23, 0.92);
  font-size: 1.95rem;
  line-height: 1.18;
}

.auth-hero-title .accent {
  color: rgb(var(--brand-primary-rgb));
}

.auth-hero-subtitle {
  margin-top: 12px;
  color: rgba(15, 23, 42, 0.72);
  font-size: 1.02rem;
  line-height: 1.5;
}

.auth-hero-illust {
  width: 100%;
  max-width: 640px;
}

.auth-hero-illust svg {
  width: 100%;
  height: auto;
  display: block;
}

.auth-split-right {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 26px;
}

.auth-form-panel {
  width: 100%;
  max-width: 420px;
}

.auth-form-panel.card-body {
  padding: 0;
}

.auth-form-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.auth-form-top--center {
  justify-content: center;
  margin-bottom: 14px;
}

.auth-mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(15, 23, 42, 0.72);
  font-weight: 800;
  font-size: 0.95rem;
}

.auth-mini-brand--stack {
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.auth-mini-brand--stack .auth-mini-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
}

.auth-mini-brand--stack .auth-mini-brand-text {
  color: rgba(2, 6, 23, 0.82);
}

.auth-mini-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.auth-mini-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--brand-primary-rgb));
  background: rgb(var(--brand-primary-rgb) / 0.10);
}

.auth-form-head {
  text-align: center;
  margin-bottom: 22px;
}

.auth-form-title {
  font-weight: 900;
  letter-spacing: 0.1px;
  color: rgba(2, 6, 23, 0.92);
  font-size: 1.35rem;
  line-height: 1.2;
}

.auth-form-subtitle {
  margin-top: 8px;
  color: rgba(15, 23, 42, 0.65);
  font-size: 0.95rem;
  line-height: 1.4;
}

.auth-form {
  margin-top: 16px;
}

.auth-input {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-input:focus {
  border-color: rgb(var(--brand-primary-rgb) / 0.45);
  box-shadow: 0 0 0 0.2rem rgb(var(--brand-primary-rgb) / 0.12);
}

.auth-input--password {
  padding-right: 3.2rem;
}

.auth-toggle--input {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  z-index: 10;
}

.auth-submit--flat {
  border-radius: 10px;
  min-height: 46px;
  font-weight: 800;
  box-shadow: none;
}

.auth-legal {
  margin-top: 14px;
  text-align: center;
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.82rem;
  line-height: 1.35;
}

.auth-footer--plain::before {
  content: none;
  display: none;
}

.auth-footer--plain {
  padding-top: 18px;
}

/* Glassmorphism Card for Login */
.login-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.12);
}

.auth-bg .app-content {
  margin-top: 0 !important;
  padding: 0 !important;
}

.auth-bg .app-content > .alert {
  max-width: 980px;
  margin: 1rem auto 0;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.4rem) 0;
  position: relative;
  z-index: 1;
}

.auth-shell .container {
  max-width: 1120px;
}

.auth-card {
  border-radius: 16px;
}

.auth-combined-card {
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.auth-side.auth-combined-side {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.auth-combined-form {
  position: relative;
}

.auth-form-body {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .auth-combined-form {
    border-left: 0;
    background: transparent;
  }
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
}

.auth-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1.6rem;
}

.auth-title {
  display: inline-block;
  position: relative;
  font-weight: 750;
  letter-spacing: 0.1px;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: var(--app-heading);
}

.auth-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 36px;
  margin: 0.5rem auto 0;
  border-radius: 999px;
  background: rgb(var(--brand-primary-rgb) / 0.75);
}

.auth-subtitle {
  margin-top: 0.25rem;
  color: var(--app-muted-strong);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.auth-floating {
  position: relative;
}

.auth-control {
  padding-left: 3rem !important;
  padding-right: 3.1rem !important;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  min-height: 52px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-control:focus {
  border-color: rgb(var(--brand-primary-rgb) / 0.4);
  box-shadow: 0 0 0 0.2rem rgb(var(--brand-primary-rgb) / 0.14);
}

.auth-floating > label {
  padding-left: 3rem;
}

.auth-field-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: rgb(var(--brand-primary-rgb) / 0.65);
  pointer-events: none;
  z-index: 5;
}

.auth-toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0.25rem 0.35rem;
  z-index: 10;
  border-radius: 10px;
  color: rgb(var(--brand-primary-rgb) / 0.6);
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.auth-toggle:hover {
  background-color: rgb(var(--brand-primary-rgb) / 0.08);
  color: rgb(var(--brand-primary-rgb) / 0.9);
  transform: translateY(-50%);
}

.auth-link {
  color: var(--app-muted-strong);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.auth-submit i {
  margin-right: 0.5rem;
}

.auth-submit {
  min-height: 48px;
  font-weight: 750;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgb(var(--brand-primary-rgb) / 0.18);
  transition: box-shadow 160ms ease, filter 160ms ease;
}

.auth-submit:hover {
  box-shadow: 0 12px 26px rgb(var(--brand-primary-rgb) / 0.22);
  filter: saturate(1.01);
}

.auth-footer {
  text-align: center;
  color: var(--app-muted-strong);
  position: relative;
  padding-top: 1.05rem;
}

.auth-footer::before {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  margin: 0 auto 0.9rem;
  background: linear-gradient(90deg, transparent 0%, rgb(var(--brand-primary-rgb) / 0.14) 18%, rgba(15, 23, 42, 0.08) 50%, rgb(var(--brand-primary-rgb) / 0.14) 82%, transparent 100%);
}

.auth-footer-line {
  font-weight: 700;
  font-size: 0.9rem;
}

.auth-footer-meta {
  font-size: 0.85rem;
  opacity: 0.9;
}

.auth-side {
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
  padding: 1.75rem;
  height: 100%;
}

.auth-side-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.auth-side-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
}

.auth-side-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1.35rem;
}

.auth-side-brand-name {
  font-weight: 900;
  color: var(--app-heading);
  line-height: 1.1;
}

.auth-side-brand-meta {
  color: var(--app-muted-strong);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.auth-side-content {
  margin-top: 1.5rem;
}

.auth-side-title {
  font-weight: 900;
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--app-heading);
}

.auth-side-subtitle {
  margin-top: 0.65rem;
  color: var(--app-muted-strong);
  font-size: 1.02rem;
  max-width: 52ch;
}

.auth-features {
  margin-top: 1.25rem;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.auth-features--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  border-top: 0;
  margin-top: 1.1rem;
}

.auth-features--chips .auth-feature {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: rgba(248, 250, 252, 0.9);
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.auth-features--chips .auth-feature:last-child {
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.auth-features--chips .auth-feature-text {
  display: flex;
  align-items: center;
}

.auth-features--chips .auth-feature-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0;
}

.auth-features--chips .auth-feature-desc {
  display: none;
}

.auth-feature {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem 0.1rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  transition: none;
}

.auth-feature:hover {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.10);
}

.auth-feature:last-child {
  border-bottom: 0;
}

.auth-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(var(--brand-primary-rgb) / 0.10);
  color: var(--brand-primary);
  flex: 0 0 auto;
}

.auth-feature-icon i {
  font-size: 0.95rem;
  line-height: 1;
}

.auth-feature-icon--safe {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.auth-feature-icon--fast {
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.auth-feature-icon--metric {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

.auth-feature-title {
  font-weight: 800;
  color: var(--app-heading);
  line-height: 1.1;
}

.auth-feature-desc {
  margin-top: 0.2rem;
  color: var(--app-muted-strong);
  font-size: 0.92rem;
}

.auth-side-note {
  margin-top: 1.25rem;
  color: var(--app-muted-strong);
  font-weight: 650;
}

@media (max-width: 576px) {
  .auth-shell {
    padding: 1.25rem 0;
  }
  .auth-bg .app-content > .alert {
    margin: 0.75rem 1rem 0;
  }
  .auth-card {
    border-radius: 16px;
  }
}

/* ===================== */
/* Mega-menu (dropdown)  */
/* ===================== */
@media (min-width: 992px) {
  .dropdown-menu.dropdown-mega {
    min-width: 720px;
    padding: 0;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  .dropdown-mega .mega-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: start;
    gap: 0;
  }
  .dropdown-mega .mega-list {
    padding: 0.75rem;
  }
  .dropdown-mega .mega-list .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    color: #212529;
    font-weight: 650;
    letter-spacing: 0.1px;
    transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
  }
  .dropdown-mega .mega-list .dropdown-item:hover,
  .dropdown-mega .mega-list .dropdown-item:focus,
  .dropdown-mega .mega-list .dropdown-item.active {
    background-color: rgba(13, 110, 253, 0.08);
    color: #0b3d91;
    text-decoration: none;
    transform: translateX(2px);
  }
  .dropdown-mega .mega-list .dropdown-item i {
    width: 20px;
    text-align: center;
  }
  .dropdown-mega .mega-list ul.list-unstyled {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .dropdown-mega .mega-list .dropdown-item.ps-4 {
    margin-left: 0.35rem;
    padding-top: 0.52rem;
    padding-bottom: 0.52rem;
    padding-left: 2.1rem !important;
    font-size: 0.92rem;
    font-weight: 650;
    background: linear-gradient(90deg, rgba(11, 61, 145, 0.14) 0 3px, rgba(2, 6, 23, 0.02) 3px 100%);
    border: 0;
  }
  .dropdown-mega .mega-list .dropdown-item.ps-4:hover,
  .dropdown-mega .mega-list .dropdown-item.ps-4:focus,
  .dropdown-mega .mega-list .dropdown-item.ps-4.active {
    background: linear-gradient(90deg, rgba(11, 61, 145, 0.55) 0 3px, rgba(11, 61, 145, 0.08) 3px 100%);
  }
  .dropdown-mega .mega-list .dropdown-item.ps-4 i.fas.fa-chevron-right {
    width: 18px;
    opacity: 0.55;
    font-size: 0.75rem;
    transform: translateY(1px);
  }
  .dropdown-mega .mega-preview {
    background: #eefaf4;
    padding: 1rem 1.25rem;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    min-height: 100%;
    border-bottom-right-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
  }
  .dropdown-mega .mega-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #0b3d91;
  }
  .dropdown-mega .mega-desc {
    color: #4b5563;
    margin: 0;
  }
}

@media (max-width: 992px) {
  .dropdown-menu.dropdown-mega {
    padding: 0.5rem;
  }
  .dropdown-mega .mega-grid {
    display: block;
  }
  .dropdown-mega .mega-preview {
    display: none;
  }
  .d-flex.justify-content-between.align-items-center.mb-3,
  .d-flex.justify-content-between.align-items-center.mb-2 {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .d-flex.justify-content-end.gap-2.mb-3 {
    flex-wrap: wrap;
  }
  .card .card-body > .d-flex.justify-content-end.mb-3 .btn-group {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .card .card-body > .d-flex.justify-content-end.mb-3 .btn-group .btn {
    width: 100%;
  }
}

/* Subtle floating animation for brand icon (optional) */
.brand-float {
  animation: brandFloat 3.5s ease-in-out infinite;
}

@keyframes brandFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Hotel Stats: Segmentation filter sizing */
.seg-card .filter-form .form-select,
.seg-card .filter-form .form-control {
  min-width: 200px; /* pastikan teks opsi tidak terpotong */
}
.seg-card .filter-form select[name="category_group"] {
  min-width: 240px; /* label "Kategori: Travel Agent" lebih panjang */
}
.seg-card .filter-form {
  gap: 0.5rem; /* jaga jarak antar kontrol tetap rapi */
  flex-wrap: wrap; /* bila ruang sempit, otomatis turun ke baris berikutnya */
}

.dashboard-hero {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: #0f172a;
}
.dashboard-hero h1,
.dashboard-hero .h4 {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: none;
}
.dashboard-hero i {
  color: #0d6efd;
  filter: none;
}
.dashboard-hero .text-muted {
  color: #64748b !important;
}

.page-title-modern {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title-modern .pt-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #22c55e 0%, #3b82f6 100%);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.18);
}

.page-title-modern .pt-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.page-title-modern .pt-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.page-title-modern .pt-gradient {
  background: linear-gradient(90deg, #0ea5e9 0%, #22c55e 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gs-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 16px;
  font: 600 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #1f2937;
  background: #f59e0b;
  border: 1px solid #f59e0b;
}

.gs-dd-btn:hover {
  filter: brightness(0.95);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
  transform: translateY(-1px);
}

.gs-dd-menu {
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  min-width: 260px;
  margin-top: 8px;
}

.gs-dd-header {
  padding: 4px 10px 8px;
  font: 600 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #64748b;
  border-bottom: 1px dashed #e5e7eb;
  margin-bottom: 6px;
}

.gs-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #0f172a;
}

.gs-dd-item i {
  color: #0f172a;
  font-size: 16px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eef2ff;
}

.gs-dd-item:hover {
  background: #f8fafc;
  color: #0b1a2b;
}

.gs-dd-item:active {
  transform: scale(0.99);
}

.hs-report-dropdown .hs-report-toggle.dropdown-toggle.show,
.hs-report-dropdown .show > .hs-report-toggle.dropdown-toggle {
  background: rgba(108, 117, 125, 0.14) !important;
  border-color: rgba(108, 117, 125, 0.4) !important;
  color: #0f172a !important;
}

.hs-report-menu {
  border-radius: 14px;
  padding: 10px;
  min-width: 320px;
  margin-top: 8px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.16);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  max-height: calc(100vh - 180px);
  overflow: auto;
}

.hs-report-menu .hs-report-header {
  padding: 4px 10px 8px;
  font: 650 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #64748b;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.45);
  margin-bottom: 6px;
}

.hs-report-menu .hs-report-section {
  padding: 6px 10px 6px;
  font: 700 12px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hs-report-menu .hs-report-divider {
  margin: 8px 0;
  opacity: 0.12;
}

.hs-report-menu .hs-report-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  color: #0f172a;
  font-weight: 650;
  letter-spacing: 0.1px;
}

.hs-report-menu .hs-report-item i.hs-ic {
  font-size: 15px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.hs-report-menu .hs-report-item i.hs-ic-blue {
  color: #0b5ed7;
  background: rgba(11, 94, 215, 0.12);
}
.hs-report-menu .hs-report-item i.hs-ic-teal {
  color: #0f766e;
  background: rgba(15, 118, 110, 0.14);
}
.hs-report-menu .hs-report-item i.hs-ic-indigo {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.14);
}
.hs-report-menu .hs-report-item i.hs-ic-amber {
  color: #b45309;
  background: rgba(245, 158, 11, 0.18);
}
.hs-report-menu .hs-report-item i.hs-ic-purple {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.14);
}
.hs-report-menu .hs-report-item i.hs-ic-slate {
  color: #334155;
  background: rgba(51, 65, 85, 0.12);
}

.hs-report-menu .hs-report-item:hover,
.hs-report-menu .hs-report-item:focus,
.hs-report-menu .hs-report-item:focus-visible {
  background: #f8fafc;
  color: #0b1a2b;
  text-decoration: none;
}

.gs-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 16px;
  font: 600 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
  min-height: 40px;
}

.gs-top-btn i {
  font-size: 18px;
  color: currentColor;
}

.gs-top-btn-primary {
  color: #fff;
  background: #0b5ed7;
  border-color: #0b5ed7;
}

.gs-top-btn-primary:hover {
  background: #0a56c6;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
  transform: translateY(-1px);
}

.gs-top-btn-success {
  color: #fff;
  background: #16a34a;
  border-color: #148c40;
}

.gs-top-btn-danger {
  color: #fff;
  background: #dc3545;
  border-color: #b02a37;
}

.gs-top-btn-outline {
  color: #0b5ed7;
  background: #fff;
  border-color: #d0d5dd;
}

.gs-top-btn:hover {
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.gs-top-btn.disabled,
.gs-top-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gs-callout {
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff7ed;
  color: #7c2d12;
}

.gs-callout-warning {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  border-color: #fde68a;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

.gs-callout i {
  color: #f59e0b;
}

.gs-modern-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.gs-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.gs-filters-item {
  display: flex;
  flex-direction: column;
  min-width: 200px;
  flex: 0 1 220px;
}

.gs-filters-item.search {
  flex: 1 1 520px;
}

.gs-filters-item .form-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.gs-filters-bar .form-control,
.gs-filters-bar .form-select {
  height: 44px;
  border-radius: 10px;
  border-color: #e2e8f0;
}

.gs-filters-bar .form-control:focus,
.gs-filters-bar .form-select:focus,
.gs-filters-bar .input-group .btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.gs-form-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 14px;
  margin-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

.gs-form-title .title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.gs-form-title .icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.22);
}

.gs-form-title .text {
  background: linear-gradient(90deg, #0b5ed7 0%, #22c55e 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gs-form-title .subtitle {
  font-size: 12px;
  color: #64748b;
}

.app-card-item--cat,
.app-card-item--month,
.app-card-item--country,
.app-card-item--city {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: none;
}

.gs-table-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.gs-table {
  margin-bottom: 0;
}

.gs-table thead.gs-table-head th,
.gs-table-head th {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
}

.rs-table-pro {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.rs-table-pro .gs-table {
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  font-size: 0.9rem;
  --bs-table-striped-bg: rgba(15, 23, 42, 0.02);
  --bs-table-hover-bg: rgba(59, 130, 246, 0.06);
  --bs-table-hover-color: inherit;
}

.rs-table-pro .gs-table th,
.rs-table-pro .gs-table td {
  border-right: 1px solid #eef2f7 !important;
}

.rs-table-pro .gs-table th:last-child,
.rs-table-pro .gs-table td:last-child {
  border-right: 0 !important;
}

.rs-table-pro .gs-table tbody td {
  border-bottom: 1px solid #eef2f7 !important;
  padding: 0.65rem 0.85rem;
}

.rs-table-pro .gs-table thead th {
  padding: 0.85rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rs-table-pro .gs-table tbody tr:hover > * {
  background-color: rgba(59, 130, 246, 0.06) !important;
}

.rs-table-pro .badge {
  font-weight: 700;
}

.rs-table-pro .btn-action.btn-sm {
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.rs-table-pro .gs-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.rs-table-pro .gs-table tfoot td,
.rs-table-pro .gs-table tfoot th {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0 !important;
}

.gs-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.gs-card .card-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.gs-card .card-header h5,
.gs-card .card-header h6 {
  margin: 0;
  font-weight: 800;
  color: #0f172a;
  font-size: 0.95rem;
}

.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  font: 600 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
  min-height: 44px;
}

.gs-btn i {
  font-size: 18px;
  color: currentColor;
}

.gs-btn-primary {
  color: #fff;
  background: #0b5ed7;
  border-color: #0b5ed7;
}

.gs-btn-primary:hover {
  background: #0a56c6;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
  transform: translateY(-1px);
}

.gs-btn-outline {
  color: #0b5ed7;
  background: #fff;
  border-color: #d0d5dd;
}

.gs-btn-outline:hover {
  background: #f8fafc;
  border-color: #b8c1cc;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
  transform: translateY(-1px);
}

.pastel-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  color: #1f2d3d;
}

.pastel-card .card-title {
  color: #1f2d3d;
}

.pastel-card i {
  color: #1f2d3d;
  opacity: 0.8;
}

#guestSurveyTotalCard {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

#guestSurveyAvgAgeCard {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

#guestSurveyUniqueCountriesCard {
  background: linear-gradient(135deg, #ecfeff 0%, #ffffff 100%);
}

#guestSurveyTodayCard {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

#guestSurveyTableContainer .table-responsive {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.gs-linecards .card {
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
}

.chart-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-box-180 {
  height: 180px;
}

.chart-box-220 {
  height: 220px;
}

.chart-box-260 {
  height: 260px;
}

.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.gs-mini .gs-table th,
.gs-mini .gs-table td {
  padding: 4px 8px;
  font-size: 12px;
}

.gs-mini h6 {
  font-size: 14px;
}

.gs-mini .badge {
  font-size: 11px;
}

.gs-mini .gs-table-box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.stats-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #212529;
}

.stats-card .card-title,
.stats-card .card-body,
.stats-card h6,
.stats-card .fw-bold {
  color: #212529;
}

.stats-card .text-muted {
  color: #6c757d !important;
}

.kpi-card {
  border-left-width: 6px;
}

.kpi-visitors {
  background: linear-gradient(135deg, #e7f5ff 0%, #d0ebff 100%) !important;
  border-left-color: #0d6efd;
}

.kpi-rno {
  background: linear-gradient(135deg, #f8f0fc 0%, #e5dbff 100%) !important;
  border-left-color: #6f42c1;
}

.kpi-revenue {
  background: linear-gradient(135deg, #ebfbee 0%, #d3f9d8 100%) !important;
  border-left-color: #198754;
}

.kpi-arr {
  background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%) !important;
  border-left-color: #fd7e14;
}

.kpi-value {
  font-weight: 700;
}

.kpi-value-visitors {
  color: #0d6efd;
}

.kpi-value-rno {
  color: #6f42c1;
}

.kpi-value-revenue {
  color: #198754;
}

.kpi-value-arr {
  color: #fd7e14;
}

.kpi-title {
  font-weight: 600;
}

.kpi-title-visitors {
  color: #0d6efd;
}

.kpi-title-rno {
  color: #6f42c1;
}

.kpi-title-revenue {
  color: #198754;
}

.kpi-title-arr {
  color: #fd7e14;
}

.title-rno,
.title-rno i {
  color: #6f42c1 !important;
}

.title-revenue,
.title-revenue i {
  color: #198754 !important;
}

.title-users,
.title-users i {
  color: #0d6efd !important;
}

.title-seg,
.title-seg i {
  color: #0aa2c0 !important;
}

.title-roomtype,
.title-roomtype i {
  color: #fd7e14 !important;
}

.title-intl,
.title-intl i {
  color: #0dcaf0 !important;
}

.title-dom,
.title-dom i {
  color: #198754 !important;
}

.stats-card .card-body {
  padding: 16px;
}

.dashboard-row {
  row-gap: 12px;
}

.hs-filter-form {
  flex-wrap: nowrap;
}

.hs-filter-form .form-control,
.hs-filter-form .form-select {
  min-width: 160px;
  height: 42px;
}

.hs-filter-form .btn,
.hs-btn-same-height {
  height: 42px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.hs-modal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hs-modal-links .col-12 {
  width: auto;
}

.hs-modal-links .btn-modern {
  white-space: normal;
  height: auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
  border: 1px solid #cfe0ff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
}

.hs-modal-links .btn-modern i {
  margin-right: 0.5rem;
}

.hs-modal-links .btn-modern.btn-outline-primary:hover,
.hs-modal-links .btn-modern.btn-outline-primary:focus {
  color: #0d6efd !important;
  background: rgba(13, 110, 253, 0.08) !important;
  border-color: #94b8ff !important;
}

.hs-modal-links .btn-modern.btn-outline-success:hover,
.hs-modal-links .btn-modern.btn-outline-success:focus {
  color: #198754 !important;
  background: rgba(25, 135, 84, 0.08) !important;
  border-color: #9fd9c0 !important;
}

.hs-modal-links .btn-modern.btn-outline-info:hover,
.hs-modal-links .btn-modern.btn-outline-info:focus {
  color: #0dcaf0 !important;
  background: rgba(13, 202, 240, 0.08) !important;
  border-color: #a8e6f6 !important;
}

.hs-modal-links .btn-modern.btn-outline-warning:hover,
.hs-modal-links .btn-modern.btn-outline-warning:focus {
  color: #ffc107 !important;
  background: rgba(255, 193, 7, 0.15) !important;
  border-color: #ffe59a !important;
}

.hs-modal-links .btn-modern.btn-outline-secondary:hover,
.hs-modal-links .btn-modern.btn-outline-secondary:focus {
  color: #6c757d !important;
  background: rgba(108, 117, 125, 0.08) !important;
  border-color: #cfd4da !important;
}

.hs-modal-links .btn-outline-primary:active,
.hs-modal-links .btn-outline-success:active,
.hs-modal-links .btn-outline-info:active,
.hs-modal-links .btn-outline-warning:active,
.hs-modal-links .btn-outline-secondary:active {
  color: inherit !important;
}

#hotelStatsReportModal .modal-dialog {
  max-width: 1400px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chart-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
}

.chart-legend .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.chart-row {
  display: grid;
  grid-template-columns: 1.2fr 300px;
  gap: 12px;
  align-items: center;
}

@media (max-width: 992px) {
  .chart-row {
    grid-template-columns: 1fr;
  }
}

#hotelStatsReportModal.modal-near .modal-dialog {
  position: fixed;
  margin: 0;
  transform: none;
}

.hs-modal-links .btn {
  width: var(--hs-link-width) !important;
}

#hotelStatsReportModal .modal-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-backdrop.show {
  opacity: 0.06;
}

.hs-modal-links .btn {
  width: var(--hs-link-width) !important;
  background: rgba(255, 255, 255, 0.55);
  border: 0 !important;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.hs-modal-links .btn:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
}
.card-neo {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(160%) blur(6px);
}
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.metric .metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.metric .metric-label {
  font-size: 0.9rem;
  color: #6c757d;
}
.action-tile {
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.floating-footer-logo {
  position: fixed;
  bottom: calc(var(--app-bar-height) - var(--footer-logo-overlap));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1055;
}
.floating-footer-logo img {
  max-height: var(--footer-logo-height);
  opacity: 0.92;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s ease, opacity 0.2s ease;
  animation: footer-logo-breathe 4s ease-in-out infinite;
  will-change: transform;
}
.floating-footer-logo:hover img {
  animation-play-state: paused;
  transform: translateY(-2px);
  opacity: 1;
}
@media (max-width: 576px) {
  .floating-footer-logo img {
    max-height: calc(var(--footer-logo-height) - 10px);
  }
}
@keyframes footer-logo-breathe {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(calc(-1 * var(--footer-logo-bob)));
  }
  100% {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-footer-logo img {
    animation: none;
  }
}
/* ================================ */
/* Rekreasi: Ringkasan Harian Cards */
/* ================================ */
.stats-card.stats-total-card {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.stats-card.stats-nusantara-card {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}
.stats-card.stats-mancanegara-card {
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
}
/* ===================== */
/* Judul Halaman & Form  */
/* ===================== */
/* Page title modern (digunakan oleh Guest Survey) */
.page-title-modern {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-title-modern .pt-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #22c55e 0%, #3b82f6 100%);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.18);
}
.page-title-modern .pt-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.page-title-modern .pt-label {
  color: #0b1a2b;
}
.page-title-modern .pt-gradient {
  background: linear-gradient(90deg, #0ea5e9 0%, #22c55e 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Form section title modern (konsistenkan di seluruh menu) */
.form-title-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 14px;
  margin-bottom: 12px;
  border-bottom: 1px dashed #e4eaf6;
}
.form-title-modern .title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.form-title-modern .icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.22);
}
.form-title-modern .text {
  background: linear-gradient(90deg, #0b5ed7 0%, #22c55e 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.form-title-modern .subtitle {
  font-size: 12px;
  color: #64748b;
}
.table thead.gs-table-head {
  position: relative;
}
.table thead.gs-table-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 1px solid #0b5ed7;
  height: 0;
  pointer-events: none;
}
.gs-table-head th {
  background: linear-gradient(180deg, #eaf3ff 0%, #ffffff 100%);
  color: #0b1a2b;
  border-top: 1px solid #0b5ed7;
  border-bottom: 1px solid #0b5ed7;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
/* Ensure closing left/right borders for tables */
.gs-table {
  border-left: 1px solid #0b5ed7 !important;
  border-right: 1px solid #0b5ed7 !important;
}
.gs-table thead th:first-child,
.gs-table tbody td:first-child {
  border-left: 1px solid #0b5ed7 !important;
}
.gs-table thead th:last-child,
.gs-table tbody td:last-child {
  border-right: 1px solid #0b5ed7 !important;
}
