div#colorbar a {
  margin-bottom: 5px;
  display: block;
  color: #5492cd;
  border-radius: 50px;
  font-size: 1rem;
  background: #fff;
  font-weight: bold;
  padding: 3px 20px;
}

.mausac {
  display: inline-block;
}

.dropdown__body {
  display: none;
}

.scene-nav-info {
  bottom: 5px;
  width: 100%;
  text-align: center;
  color: slategrey;
  opacity: 0.7;
  font-size: 10px;
}

.scene-tooltip {
  top: 0;
  color: lavender;
  font-size: 15px;
}

.scene-nav-info,
.scene-tooltip {
  position: absolute;
  font-family: sans-serif;
  pointer-events: none;
}

.scene-container canvas:focus {
  outline: none;
}

.leaflet-pane.leaflet-pane_Luu_vuc_region_1-pane {
  z-index: 200 !important;
}

.scene-container .clickable {
  cursor: pointer;
}

#chart-container {
  position: absolute;
  z-index: 99999999;
  bottom: 0px;
  width: 100%;
}

#close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  z-index: 1;
}

#close-button:hover {
  background-color: #cc0000;
}

.meodien {
  position: absolute;
  z-index: 999;
  bottom: 0px;
}

span.main-title,
h1.main-title {
  font-weight: bold;
}



.__react_component_tooltip {
  border-radius: 3px;
  display: inline-block;
  font-size: 13px;
  left: -999em;
  opacity: 0;
  padding: 8px 21px;
  position: fixed;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  top: -999em;
  visibility: hidden;
  z-index: 999;
}

.__react_component_tooltip.allow_hover,
.__react_component_tooltip.allow_click {
  pointer-events: auto;
}

.__react_component_tooltip::before,
.__react_component_tooltip::after {
  content: "";
  width: 0;
  height: 0;
  position: absolute;
}

.__react_component_tooltip.show {
  opacity: 0.9;
  margin-top: 0;
  margin-left: 0;
  visibility: visible;
}

.__react_component_tooltip.place-top::before {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  bottom: -8px;
  left: 50%;
  margin-left: -10px;
}

.__react_component_tooltip.place-bottom::before {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  top: -8px;
  left: 50%;
  margin-left: -10px;
}

.__react_component_tooltip.place-left::before {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  right: -8px;
  top: 50%;
  margin-top: -5px;
}

.__react_component_tooltip.place-right::before {
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  left: -8px;
  top: 50%;
  margin-top: -5px;
}

.__react_component_tooltip .multi-line {
  display: block;
  padding: 2px 0;
  text-align: center;
}

@media (max-width: 767px) {
  .option__dropdown-box .option__title--wrapper {
    display: none;
  }

  .colorbar-container {
    bottom: 50px !important;
    zoom: 0.7;
  }
}

.ipcc-mobile-menu {
  display: none;
}

.ipcc-mobile-menu.ipcc-mobile-menu-transition-enter-done.opened {
  display: flex;
}

div#map__main {
  width: 100%;
  margin-top: 40px;
  height: calc(100vh - 120px);

}

div#colorbar {
  font-size: 0.8rem;
}

#loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #0458ac, #19fa60);
  z-index: 9999;
  transition: width 0.4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

#loading-bar.hide {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}


/* Loading bar container */
.loading-bar {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  /* Ensure it appears above map layers */
  display: none;
  /* Hidden by default */
}

.loader {
  width: 48px;
  height: 48px;
  border: 2px solid #337ec7;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 0;
  background: #337ec7;
  width: 3px;
  height: 24px;
  transform: translateX(-50%);
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Color bar container */
.colorbar-container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 5px;
  border-radius: 5px;
  text-align: center;
}

/** 34 Province layer style */
.province-layer {
  stroke: #020202;
  pointer-events: none;
}

.leaflet-tooltip.province-tooltip {
  font-size: 14px;
  padding: 6px 8px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: red;
  /* Màu chữ đỏ */
}

/**Cực đoan đô thị style */
#cucdoandothi,
#nguycongap {
  display: none;
}

.coordinates-panel {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgb(255 255 255);
  padding: 5px 10px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  z-index: 1000;
  color: #357fc7;
  border-radius: 10px;
}

/* Coordinates on right side */
.coordinates-panel-right {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.98);
  padding: 8px 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  z-index: 1000;
  color: #667eea;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

div#chartWrapper {
  position: absolute;
  bottom: 0px;
  left: 0px;
  z-index: 9999;
  width: 100%;
}

/* MỚI: CSS cho nút close */
.close-button-x {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  /* Đảm bảo nút nằm trên biểu đồ */
}

.close-button-x:hover {
  color: #000;
}

.controls .active {
  background: #009688;
  color: white;
}

#graticule-tool {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  width: 240px;
}

#toggleGridBtn {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

#toggleGridBtn.on {
  background: #007bff;
  color: #fff;
}

#toggleGridBtn.off {
  background: #e9ecef;
  color: #333;
}

.grid-options,
.base-layer-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#gridIntervalSelect,
#baseLayerSelect {
  padding: 4px;
  font-size: 13px;
  border-radius: 4px;
}

.grid-label-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

div#visitcount {
  position: absolute;
  z-index: 99999;
  bottom: 15px;
  right: 0px;
  clip-path: inset(0 0 15px 0);
}

/* Hide Leaflet Draw Controls */
.leaflet-draw {
  display: none !important;
}

/* Hide Leaflet Layer Control */
.leaflet-control-layers {
  display: none !important;
}

/* Hide XA Layer Control Button */
.leaflet-bar.xalayer.leaflet-control {
  display: none !important;
}

/* Move Leaflet Zoom Controls to Right */
.leaflet-top.leaflet-left {
  left: auto !important;
  right: 10px;
}

.leaflet-control-zoom {
  margin-right: 0 !important;
}

/* Special Labels for Hoang Sa, Truong Sa */
.special-label {
  background: transparent !important;
  border: none !important;
  z-index: 1000 !important;
}

.special-label div {
  background: transparent !important;
}

@media (max-width: 600px) {
  div#visitcount img {
    display: none;
  }
}

.city-label {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  font-weight: bold;
  z-index: 10;
  transition: .3s margin;
  letter-spacing: .6px;
  color: #fff !important;
  text-shadow: -1px 0 1px rgba(0, 0, 0, .8), 1px 0 1px rgba(0, 0, 0, .8), 0 1px 1px rgba(0, 0, 0, .8), 0 -1px 1px rgba(0, 0, 0, .8);
  z-index: 9;
}

.air-tooltip {
  z-index: 9999;
}

.leaflet-bar.xalayer.leaflet-control a.leaflet-control-xa-layer {
  padding: 3px 10px;
  font-size: 1.3rem;
  background: #5492cd !important;
  border-radius: 9px !important;
  color: #fff !important;
}

.leaflet-touch .leaflet-bar a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-color: rgb(84, 146, 205);
  border-radius: 30px !important;
  border-bottom: none;
  margin: 2px 0px;
  color: rgb(84, 146, 205) !important;
}

.leaflet-touch .leaflet-control-zoom-in,
.leaflet-touch .leaflet-control-zoom-out {
  font-size: 27px;
}

.leaflet-bar.xalayer.leaflet-control {
  top: 40px;
}

.core-layout .ipcc-app__header {
  background: linear-gradient(92deg, #0d59a5, #2972b7, #0d59a5);
  background-size: 200% 200%;
  /* gradient dài gấp đôi để có hiệu ứng phản chiếu */
  animation: mirrorGradient 1s ease-in-out infinite alternate;
}

/* Animation kiểu gương: gradient di chuyển sang phải rồi quay lại */
@keyframes mirrorGradient {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
  border: none !important;
  background-clip: padding-box;
}

.leaflet-control-attribution.leaflet-control span {
  display: none;
}

.leaflet-control-attribution.leaflet-control {
  color: #ffffff;
  background: #5492cd !important;
  border-radius: 10px;
  padding: 2px 6px;
}

.leaflet-bar.xalayer.leaflet-control a.leaflet-control-xa-layer i {
  margin-top: 5px;
}

input[type=range] {
  accent-color: #5492cd;
}

/* ===================================
   LEFT SIDEBAR STYLES - MODERN DESIGN
   =================================== */
:root {
  --left-sidebar-bg: linear-gradient(92deg, rgb(19 51 100), rgb(0 173 197));
  --left-sidebar-panel-bg: rgba(255, 255, 255, 0.98);
  --left-sidebar-border: rgba(0, 0, 0, 0.08);
  --left-sidebar-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  --left-sidebar-accent: rgb(0 173 197);
  --left-sidebar-accent-hover: rgb(0 150 180);
}

/* Left Sidebar Toggle Button - Beautiful Design */
.left-sidebar-toggle {
  position: absolute;
  top: 125px;
  left: 10;
  z-index: 999;
}

.left-sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  border: none;
  background: linear-gradient(92deg, rgb(19 51 100), rgb(0 173 197));
  box-shadow: 0 4px 15px rgba(0, 173, 197, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.left-sidebar-toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.left-sidebar-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 173, 197, 0.5);
}

.left-sidebar-toggle-btn:hover::before {
  opacity: 1;
}

.left-sidebar-toggle-btn i {
  font-size: 1.4em;
  z-index: 1;
}

.left-sidebar-toggle-btn:active {
  transform: translateY(0);
}


/* Left Sidebar Panel - Modern Card Design */
.left-sidebar-panel {
  position: absolute;
  top: 115px;
  left: 0;
  z-index: 1001;
  width: 320px;
  background: var(--left-sidebar-panel-bg);
  box-shadow: var(--left-sidebar-shadow);
  border: none;
  border-right: 1px solid var(--left-sidebar-border);
  padding: 0;
  display: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2d3748;
  height: calc(100vh - 115px);
  overflow: hidden;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.left-sidebar-panel.active {
  display: block;
}

/* Left Sidebar Header - Gradient Header */
.left-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #ffffff;
  border-radius: 0;
  margin-bottom: 0;
  border-bottom: 1px solid #ccc;
}

.left-sidebar-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: rgb(19 51 100);
  letter-spacing: 0.5px;
}

.left-sidebar-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: rgb(19 51 100);
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.left-sidebar-close:hover {
  background: rgba(0, 173, 197, 0.1);
  color: rgb(0 173 197);
  transform: rotate(90deg);
}

/* Scrollable Content Area */
.left-sidebar-panel>div:not(.left-sidebar-header) {
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding: 20px;
}

/* Custom Scrollbar */
.left-sidebar-panel>div:not(.left-sidebar-header)::-webkit-scrollbar {
  width: 6px;
}

.left-sidebar-panel>div:not(.left-sidebar-header)::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.left-sidebar-panel>div:not(.left-sidebar-header)::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

/* Left Sidebar Sections - Card Style */
.left-sidebar-section {
  margin-bottom: 20px;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.left-sidebar-section:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-2px);
}

.left-sidebar-section:last-child {
  margin-bottom: 0;
}

.left-sidebar-subtitle {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.left-sidebar-subtitle::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* Left Sidebar Controls - Modern Inputs */
.left-sidebar-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: #f7fafc;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #2d3748;
  font-weight: 500;
}

.left-sidebar-select:hover {
  border-color: #667eea;
  background: #ffffff;
}

.left-sidebar-select:focus {
  outline: none;
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.left-sidebar-select-sm {
  padding: 8px 10px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: #f7fafc;
  font-size: 13px;
  cursor: pointer;
  flex: 1;
  transition: all 0.2s ease;
  color: #2d3748;
  font-weight: 500;
}

.left-sidebar-select-sm:hover {
  border-color: #667eea;
  background: #ffffff;
}

.left-sidebar-select-sm:focus {
  outline: none;
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.left-sidebar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.left-sidebar-row label {
  font-size: 14px;
  color: #4a5568;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s ease;
}

.left-sidebar-row label:hover {
  color: #667eea;
}

/* Modern Checkbox Styling */
.left-sidebar-row input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

/* Modern Button Styling */
.left-sidebar-toggle-btn-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  border: none;
  background: #2871b6;
  box-shadow: 0 4px 15px rgb(0 0 0 / 40%);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.left-sidebar-toggle-btn-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.left-sidebar-toggle-btn-sm:active {
  transform: translateY(0);
}

.left-sidebar-toggle-btn-sm.active {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

/* Additional Button Styles for Sidebar */
.left-sidebar-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  margin-top: 8px;
}

.left-sidebar-btn:first-of-type {
  margin-top: 0;
}

.left-sidebar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.left-sidebar-btn:active {
  transform: translateY(0);
}

.left-sidebar-btn-sm {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: #f7fafc;
  color: #667eea;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid #e2e8f0;
  flex: 1;
}

.left-sidebar-btn-sm:hover {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}

/* Visit Counter in Sidebar */
#visitcount-left {
  display: block;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 8px;
}

#visitcount-left img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ===================================
   RIGHT CONTROLS CONTAINER - IMPROVED
   =================================== */
#right-controls-container {
  position: absolute;
  top: 180px;
  right: 12px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#right-controls-container .toolbox-toggle {
  position: relative;
  top: 0;
  right: 0;
}

#right-controls-container .toolbox-toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#right-controls-container .toolbox-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

#right-controls-container .toolbox-opacity-outside {
  position: relative;
  bottom: auto;
  left: auto;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 10px 14px;
}

/* ===================================
   MOBILE RESPONSIVE STYLES
   =================================== */
@media (max-width: 768px) {
  .left-sidebar-toggle {
    top: 10px;
    left: 12px;
  }

  .left-sidebar-panel {
    left: 12px;
    right: auto;
    top: 10px;
    width: 300px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 200px);
  }

  #right-controls-container {
    top: 180px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .left-sidebar-toggle-btn {
    width: 45px;
    height: 45px;
  }

  .left-sidebar-panel {
    width: 280px;
  }

  .left-sidebar-toggle {
    top: 10px;
  }

  #right-controls-container {
    top: 10px;
  }

  #right-controls-container .toolbox-toggle-btn {
    width: 45px;
    height: 45px;
  }

  #right-controls-container .toolbox-opacity-outside {
    padding: 8px 10px;
  }

  #right-controls-container .toolbox-opacity-outside input[type="range"] {
    width: 80px;
  }

  #right-controls-container .toolbox-opacity-outside .opacity-label {
    display: none;
  }
}

.leaflet-control-attribution.leaflet-control {
  display: none
}

.leaflet-container a.leaflet-popup-close-button {
    width: 34px;
    height: 34px;
}
.leaflet-container a.leaflet-popup-close-button:hover, .leaflet-container a.leaflet-popup-close-button:focus {
    color: #fd0303;
}

/* UC-10 Snapshot Map */
.snapshot-map-section .snapshot-map-hint {
  font-size: 12px;
  color: #555;
  line-height: 1.45;
  margin: 0 0 10px;
}
.snapshot-map-section .snapshot-map-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.snapshot-map-section .snapshot-note-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  font-size: 13px;
  resize: vertical;
  min-height: 48px;
  margin-bottom: 10px;
  font-family: inherit;
}
.snapshot-map-section .snapshot-url-output {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  font-size: 11px;
  margin-bottom: 8px;
  background: #f8f9fb;
  color: #1a365d;
}
.snapshot-map-section .snapshot-map-generate-btn {
  width: 100%;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  border: none;
  font-weight: 600;
}
.snapshot-map-section .snapshot-map-generate-btn:hover {
  filter: brightness(1.05);
}
.snapshot-map-section .snapshot-map-copy-btn {
  width: 100%;
  margin-top: 4px;
  background: #edf2f7;
  color: #2d3748;
  border: 1px solid #cbd5e0;
  font-weight: 600;
}
.snapshot-map-section .snapshot-map-copy-btn:hover {
  background: #e2e8f0;
}

/* UC-18 Share Social */
.share-social-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}
.share-social-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #718096;
  margin-bottom: 8px;
}
.share-social-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.share-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.share-social-btn:hover {
  transform: scale(1.08);
  opacity: 0.9;
}
.share-social-btn i {
  font-size: 14px;
}
#shareFacebook { background: #1877f2; }
#shareTwitter { background: #000; }
#shareZalo { background: #0068ff; }
#shareLinkedIn { background: #0a66c2; }
[data-theme="dark"] .share-social-row { border-top-color: #374151; }
[data-theme="dark"] .share-social-label { color: #9ca3af; }

/* UC-11 Export Modal */
.export-map-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 20px;
  box-sizing: border-box;
}
.export-map-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.export-map-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.export-map-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a365d;
}
.export-map-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #718096;
  cursor: pointer;
  padding: 0 4px;
}
.export-map-modal-close:hover {
  color: #2d3748;
}
.export-map-modal-body {
  padding: 20px;
}
.export-map-form-row {
  margin-bottom: 14px;
}
.export-map-form-row:last-child {
  margin-bottom: 0;
}
.export-map-share-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.export-map-share-row label {
  display: block;
  margin-bottom: 8px;
}
.export-map-share-btns {
  display: flex;
  gap: 8px;
}
.export-map-share-btns .share-social-btn {
  width: 32px;
  height: 32px;
}
.export-map-share-btns .share-social-btn i {
  font-size: 12px;
}
.export-map-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}
.export-map-form-row select,
.export-map-form-row input[type="text"],
.export-map-form-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.export-map-form-row textarea {
  resize: vertical;
  min-height: 56px;
}
.export-map-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
}
.export-map-btn-cancel {
  padding: 8px 16px;
  border: 1px solid #cbd5e0;
  background: #fff;
  color: #4a5568;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.export-map-btn-cancel:hover {
  background: #f7fafc;
}
.export-map-btn-export {
  padding: 8px 20px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.export-map-btn-export:hover:not(:disabled) {
  filter: brightness(1.05);
}
.export-map-btn-export:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}
.export-map-btn-primary {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}
.export-map-btn-primary:hover {
  filter: brightness(1.05);
}

/* UC-20: So sánh kịch bản 2021–2100 */
.timeseries-compare-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}
/* UC-19: CHANGE (Δ so với cơ sở) */
.change-delta-header-row {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}
.change-delta-title {
  font-weight: 600;
  font-size: 12px;
  color: #fff;
}
.options__body__list-container.kichban-delta {
  margin-top: 6px;
}
[data-theme="dark"] .change-delta-header-row { border-top-color: #374151; }
[data-theme="dark"] .change-delta-title { color: #9ca3af; }
.delta-type-select-row {
  margin-top: 8px;
  padding: 6px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.delta-type-select-row label { font-weight: 600; color: #4a5568; }
.delta-type-select-row select {
  flex: 1;
  max-width: 160px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e0;
  font-size: 13px;
}
.delta-analytics-panel {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  max-height: 42vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.delta-analytics-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.delta-analytics-title {
  font-weight: 600;
  font-size: 14px;
  color: #1a365d;
}
.delta-view-tabs { display: flex; gap: 6px; }
.delta-view-tab {
  padding: 5px 10px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #f7fafc;
  font-size: 12px;
  cursor: pointer;
  color: #2d3748;
}
.delta-view-tab.active {
  background: #1a365d;
  border-color: #1a365d;
  color: #fff;
}
.delta-table-wrap {
  overflow: auto;
  max-height: 34vh;
  flex: 1;
}
.delta-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.delta-data-table th,
.delta-data-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  text-align: right;
}
.delta-data-table th:first-child,
.delta-data-table td:first-child { text-align: left; }
.delta-data-table thead th {
  background: #edf2f7;
  color: #1a365d;
  position: sticky;
  top: 0;
  z-index: 1;
}
.delta-summary-row td { background: #f0fff4; font-weight: 600; }
.delta-chart-wrap { flex: 1; min-height: 260px; }
.delta-loading-msg, .delta-empty-msg {
  text-align: center;
  color: #718096;
  padding: 24px;
  font-size: 13px;
}
[data-theme="dark"] .delta-type-select-row label { color: #cbd5e1; }
[data-theme="dark"] .delta-analytics-panel {
  background: rgba(30,41,59,0.95);
  border-color: #475569;
}
[data-theme="dark"] .delta-analytics-title { color: #e2e8f0; }
[data-theme="dark"] .delta-view-tab { background: #334155; border-color: #475569; color: #e2e8f0; }
[data-theme="dark"] .delta-data-table thead th { background: #334155; color: #e2e8f0; }
.timeseries-compare-row label {
  cursor: pointer;
  font-weight: 500;
}
[data-theme="dark"] .timeseries-compare-row { border-top-color: #374151; }
.time-selector-section.dimmed {
  opacity: 0.5;
  pointer-events: none;
}
.timeseries-chart-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
  padding: 20px;
  box-sizing: border-box;
}
.timeseries-chart-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.timeseries-chart-toolbar {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeseries-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.timeseries-view-tab {
  padding: 6px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background: #f7fafc;
  color: #2d3748;
  font-size: 13px;
  cursor: pointer;
}
.timeseries-view-tab:hover {
  background: #edf2f7;
}
.timeseries-view-tab.active {
  background: #1a365d;
  border-color: #1a365d;
  color: #fff;
}
.timeseries-series-opts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 13px;
}
.timeseries-series-opts-label {
  font-weight: 600;
  color: #4a5568;
}
.timeseries-series-opts label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.timeseries-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.timeseries-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.timeseries-data-table th,
.timeseries-data-table td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid #e2e8f0;
}
.timeseries-data-table th:first-child,
.timeseries-data-table td:first-child {
  text-align: center;
  position: sticky;
  left: 0;
  background: #f7fafc;
  z-index: 1;
}
.timeseries-data-table thead th {
  background: #edf2f7;
  font-weight: 600;
  color: #1a365d;
  position: sticky;
  top: 0;
  z-index: 2;
}
.timeseries-data-table tbody tr:hover td {
  background: #f0fff4;
}
.timeseries-empty-msg {
  margin: 24px 0;
  text-align: center;
  color: #718096;
  font-size: 14px;
}
[data-theme="dark"] .timeseries-view-tab {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}
[data-theme="dark"] .timeseries-view-tab.active {
  background: #0d9488;
  border-color: #0d9488;
}
[data-theme="dark"] .timeseries-series-opts-label { color: #cbd5e1; }
[data-theme="dark"] .timeseries-table-wrap { border-color: #475569; }
[data-theme="dark"] .timeseries-data-table th,
[data-theme="dark"] .timeseries-data-table td { border-color: #475569; }
[data-theme="dark"] .timeseries-data-table th:first-child,
[data-theme="dark"] .timeseries-data-table td:first-child { background: #1e293b; }
[data-theme="dark"] .timeseries-data-table thead th { background: #334155; color: #e2e8f0; }
.timeseries-chart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.timeseries-chart-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a365d;
}
.timeseries-chart-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #718096;
  padding: 0;
  line-height: 1;
}
.timeseries-chart-modal-close:hover {
  color: #2d3748;
}
.timeseries-chart-modal-body {
  padding: 20px;
  overflow-y: auto;
}
.timeseries-chart-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: #718096;
}
[data-theme="dark"] .timeseries-chart-modal { background: #1e293b; }
[data-theme="dark"] .timeseries-chart-modal-header { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .timeseries-chart-modal-header h3 { color: #e2e8f0; }
[data-theme="dark"] .timeseries-chart-hint { color: #9ca3af; }

/* ===================================
   UC-12: DARK MODE / LIGHT MODE
   =================================== */
.theme-toggle-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Dark theme overrides */
[data-theme="dark"] {
  --left-sidebar-panel-bg: rgba(30, 41, 59, 0.98);
  --left-sidebar-border: rgba(255, 255, 255, 0.1);
  --left-sidebar-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --toolbox-bg: rgba(30, 41, 59, 0.98);
  --toolbox-border: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] body {
  background: #0f172a;
}

[data-theme="dark"] .core-layout .ipcc-app__header {
  background: linear-gradient(92deg, #1e293b, #334155, #1e293b);
  animation: none;
}

[data-theme="dark"] .ipcc-app__link-container .ipcc-header-link {
  color: rgba(255,255,255,0.9);
}
[data-theme="dark"] .ipcc-app__link-container .ipcc-header-link:hover {
  color: #fff;
}

[data-theme="dark"] .left-sidebar-panel {
  background: var(--left-sidebar-panel-bg);
  border-right-color: var(--left-sidebar-border);
}

[data-theme="dark"] .left-sidebar-header {
  background: #1e293b;
  border-bottom-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .left-sidebar-header h4,
[data-theme="dark"] .left-sidebar-close {
  color: #e2e8f0;
}

[data-theme="dark"] .left-sidebar-close:hover {
  background: rgba(255,255,255,0.1);
  color: #7dd3fc;
}

[data-theme="dark"] .left-sidebar-panel > div:not(.left-sidebar-header) {
  color: #e2e8f0;
}

[data-theme="dark"] .left-sidebar-section {
  background: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .left-sidebar-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .left-sidebar-subtitle,
[data-theme="dark"] .left-sidebar-section label {
  color: #cbd5e1;
}

[data-theme="dark"] .left-sidebar-select,
[data-theme="dark"] .left-sidebar-select-sm,
[data-theme="dark"] .left-sidebar-panel input[type="text"],
[data-theme="dark"] .left-sidebar-panel textarea,
[data-theme="dark"] .left-sidebar-panel select {
  background: #334155;
  border-color: rgba(255,255,255,0.15);
  color: #e2e8f0;
}

[data-theme="dark"] .left-sidebar-btn,
[data-theme="dark"] .left-sidebar-btn-sm {
  background: #475569;
  border-color: rgba(255,255,255,0.1);
  color: #e2e8f0;
}

[data-theme="dark"] .left-sidebar-btn:hover,
[data-theme="dark"] .left-sidebar-btn-sm:hover {
  background: #64748b;
  color: #fff;
}

[data-theme="dark"] .left-sidebar-panel input[type="checkbox"] + label,
[data-theme="dark"] .left-sidebar-panel label {
  color: #cbd5e1;
}

[data-theme="dark"] #visitcount-left span,
[data-theme="dark"] .snapshot-map-hint,
[data-theme="dark"] .snapshot-map-label {
  color: #94a3b8;
}

[data-theme="dark"] .snapshot-note-input,
[data-theme="dark"] .snapshot-url-output {
  background: #334155;
  border-color: rgba(255,255,255,0.15);
  color: #e2e8f0;
}

[data-theme="dark"] .option__dropdown-box,
[data-theme="dark"] .option__dropdown-header,
[data-theme="dark"] .option__dropdown-content,
[data-theme="dark"] .dropdown__body {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: rgba(255,255,255,0.1) !important;
}

/* Khi chọn CHANGE (Δ so với cơ sở): trong menu Chọn biến chỉ hiện nhóm Khí quyển (.bienchung) */
#variable-option-selector-primaryMap.variable-selector--delta-only-bienchung .options__body > *:not(.bienchung) {
  display: none !important;
}

[data-theme="dark"] .option__title,
[data-theme="dark"] .radio-list-selector__title,
[data-theme="dark"] .options__body label {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .colorbar-container,
[data-theme="dark"] #colorbar {
  background: rgba(30, 41, 59, 0.95) !important;
  color: #cbd5e1 !important;
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] div#colorbar a {
  color: #7dd3fc !important;
  background: #334155 !important;
}

[data-theme="dark"] .coordinates-panel-right {
  background: rgba(30, 41, 59, 0.9) !important;
  color: #e2e8f0 !important;
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .toolbox-panel,
[data-theme="dark"] .toolbox-opacity-outside {
  background: var(--toolbox-bg) !important;
  border-color: var(--toolbox-border) !important;
  color: #e2e8f0;
}

[data-theme="dark"] .export-map-modal {
  background: #1e293b;
  color: #e2e8f0;
}

[data-theme="dark"] .export-map-modal-header,
[data-theme="dark"] .export-map-modal-footer {
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .export-map-modal-header h3 {
  color: #e2e8f0;
}

[data-theme="dark"] .export-map-modal-body select,
[data-theme="dark"] .export-map-modal-body input,
[data-theme="dark"] .export-map-modal-body textarea {
  background: #334155;
  border-color: rgba(255,255,255,0.15);
  color: #e2e8f0;
}

[data-theme="dark"] .export-map-modal-body label {
  color: #cbd5e1;
}
[data-theme="dark"] .export-map-share-row {
  border-top-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .graticule-label {
  fill: #94a3b8 !important;
}