:root {
  --botsad-hero-gradient: linear-gradient(135deg, #1d7ed8 0%, #1abc9c 80%);
  --botsad-card-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --botsad-border-radius: 1rem;
}

body {
  background-color: #f5f6fb;
}

.page {
  min-height: 100vh;
}

.page-navbar {
  background: linear-gradient(120deg, #253657 0%, #1b2841 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.page-navbar .navbar-brand .navbar-logo {
  width: 60px;
  height: 60px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
}

.page-navbar .navbar-brand-text {
  font-size: 1rem;
  line-height: 1.35;
  color: #f4f7ff;
}

.page-navbar .nav-link {
  color: rgba(244, 247, 255, 0.85);
  font-weight: 600;
  border-radius: 0.5rem;
}

.page-navbar .nav-link:hover,
.page-navbar .nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

.page-navbar .nav-link-icon {
  color: rgba(244, 247, 255, 0.85);
}

.page-navbar .dropdown-menu {
  background-color: #1f2c45;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-navbar .dropdown-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.page-navbar .dropdown-menu .dropdown-item:hover,
.page-navbar .dropdown-menu .dropdown-item:focus {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

.page-navbar .main-nav {
  gap: 0.35rem;
}

@media (min-width: 768px) {
  .page-navbar .navbar-collapse {
    flex-basis: 100%;
  }

  .page-navbar .main-nav {
    flex-direction: row;
    justify-content: center;
  }

  .page-navbar .language-switcher {
    margin-left: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .page-navbar .language-switcher {
    padding: 0.75rem 0;
  }
}

.page-wrapper {
  background: linear-gradient(180deg, #f5f6fb 0%, #eef1f6 100%);
}

.hero-card {
  background: var(--botsad-hero-gradient);
  border: none;
  border-radius: var(--botsad-border-radius);
  box-shadow: var(--botsad-card-shadow);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero-card .badge {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f8fbff;
}

.hero-card .btn {
  color: #1d7ed8;
}

.hero-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.stat-card {
  border-radius: var(--botsad-border-radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.stat-card .stat-value {
  font-size: 2.25rem;
  font-weight: 600;
}

.stat-card .stat-label {
  color: #6b7280;
  font-size: 0.9rem;
}

.language-switcher .btn {
  min-width: 56px;
}

.map-shell,
.report-shell {
  border-radius: var(--botsad-border-radius);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.map-shell #map,
.map-shell #rmap {
  border-radius: calc(var(--botsad-border-radius) - 0.5rem);
}

.legend-card {
  border-radius: var(--botsad-border-radius);
  background-color: #0f172a;
  color: #fff;
}

.legend-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.legend-card li + li {
  margin-top: 0.5rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  display: inline-flex;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.data-panel {
  max-height: 80vh;
  overflow-y: auto;
}

.sticky-lg-top {
  top: 1.25rem;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.report-toolbar .btn {
  flex-shrink: 0;
}

.chart-wrapper {
  position: relative;
  height: 360px;
}

.report-card + .report-card {
  margin-top: 1rem;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gallery-container .main-display {
  width: 100%;
  border-radius: var(--botsad-border-radius);
  background-color: #0f172a;
  padding: 0.75rem;
}

.gallery-container .main-display img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  border-radius: calc(var(--botsad-border-radius) - 0.75rem);
}

.gallery-container .thumbnail-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.gallery-container .thumbnail img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.gallery-container .thumbnail img:hover,
.gallery-container .thumbnail img.active {
  border-color: #1d7ed8;
}

.library-table table {
  border-radius: var(--botsad-border-radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.library-table tbody tr.active {
  background-color: rgba(29, 126, 216, 0.08);
}

.leaflet-container {
  border-radius: var(--botsad-border-radius);
}

.badge-soft {
  background-color: rgba(29, 126, 216, 0.1);
  color: #1d7ed8;
}

.uk-section {
  padding: 2.5rem 0;
}

.uk-section-primary {
  background: var(--botsad-hero-gradient);
  color: #fff;
  border-radius: var(--botsad-border-radius);
  box-shadow: var(--botsad-card-shadow);
}

.uk-section-default {
  background-color: transparent;
}

.uk-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.uk-button,
.uk-button-default {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  border: 1px solid var(--tblr-border-color);
  background-color: #fff;
  color: #1d7ed8;
  font-weight: 500;
}

.uk-button-default:hover {
  background-color: #edf2ff;
}

.uk-nav > li > a {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0.25rem;
  color: inherit;
  text-decoration: none;
  border-radius: 0.5rem;
}

.uk-nav > li > a:hover,
.uk-nav > li > a.highlighted-category {
  background-color: rgba(29, 126, 216, 0.12);
  color: #1d7ed8;
}

.uk-background-muted {
  background-color: rgba(15, 23, 42, 0.04);
  border-radius: var(--botsad-border-radius);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.uk-background-default {
  background-color: #fff;
  border-radius: var(--botsad-border-radius);
  box-shadow: var(--botsad-card-shadow);
  padding: 1.25rem;
}

.uk-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 0.75rem;
  overflow: hidden;
}

.uk-table th,
.uk-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.uk-table-divider tr:last-child td {
  border-bottom: none;
}

.uk-flex {
  display: flex;
  gap: 1.5rem;
}

.uk-width-auto {
  flex: 0 0 280px;
}

.uk-width-expand {
  flex: 1 1 auto;
}

.uk-margin-top {
  margin-top: 1rem;
}

.uk-margin-left {
  margin-left: 0;
}

.uk-padding-small {
  padding: 1rem;
}

.uk-height-viewport {
  height: auto;
}

.uk-flex-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.uk-width-1-1 {
  width: 100%;
}

.uk-nav-header {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.highlighted-row {
  background-color: rgba(29, 126, 216, 0.08);
}

.uk-navbar {
  display: flex;
  align-items: center;
}

.uk-navbar-nav {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.uk-navbar-nav li a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .navbar-vertical.navbar-dark {
    background-color: #0f172a;
  }

  .hero-card {
    text-align: center;
  }

  .hero-card .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .report-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
