* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

body {
    background-color: #1a1a1a;
    color: #ffffff;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100vw;
    height: 90vh;
    z-index: 1;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.map {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111112;
}

.map.right {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.handle {
    position: absolute;
    width: 4px;
    height: 100%;
    background: #ffffff;
    left: 50%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 1000;
}

.handle::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.timeline-container {
    position: relative;
    width: 100%;
    height: 10vh;
    background: #090909;
    padding: 20px;
}

.timeline {
    position: relative;
    width: 100%;
    height: 20px;
    /* background: linear-gradient(to right, 
        #0000ff,
        #00ff00,
        #ffff00,
        #ff0000
    ); */
    border-radius: 10px;
    cursor: pointer;
}

.timeline-handle {
    position: absolute;
    width: 20px;
    height: 40px;
    background: #ffffff;
    border-radius: 4px;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
}

.timeline-handle:active {
    cursor: grabbing;
}

.year-display {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: medium;
    color: #cecece;
    z-index: 100;
}

.map-btn {
    position: absolute;
    top: 20px;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    transition: background 0.3s;
}

.map-btn:hover {
    background: #45a049;
}

.left-btn {
    left: 20px;
}

.right-btn {
    right: 20px;
}

.btn-active {
    background: #ff4444;
}

.btn-active:hover {
    background: #cc3333;
}

.ol-zoom {
  left: unset;
  top: unset;
  right: 8px;
  bottom: 8px;
}

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

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.5s ease-in-out;
}

.overlay h1 {
  color: #ffffff;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.overlay h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.overlay p {
  color: #a0a0a0;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 50vw;
  text-align: center;
  line-height: 1.6;
}

.cta-button {
  padding: 15px 40px;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
}

.cta-button:active {
  transform: translateY(1px);
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
}

.cta-button:hover::after {
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

.graph-container {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 30vw;
  height: 80vh;
  background-color: rgba(26, 26, 26, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  padding: 15px;
  overflow-y: auto;
  z-index: 10;
  transition: all 0.3s ease;
  border-left: 3px solid #45a049;
}

.graph-container:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.graph-container h3 {
  color: #fff;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(69, 160, 73, 0.5);
  padding-bottom: 8px;
}

.graph-container button {
  background-color: #45a049;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-right: 5px;
  margin-bottom: 10px;
  transition: background-color 0.2s ease;
}

.graph-container button:hover {
  background-color: #56b35a;
}

.graph-container button:active {
  background-color: #378c3b;
}

.chart-wrapper {
  margin-bottom: 20px;
  background-color: rgba(40, 40, 40, 0.5);
  padding: 10px;
  border-radius: 6px;
}
.chart-wrapper canvas{
  width: 100%;
}

.chart-title {
  font-size: 14px;
  color: #fff;
  margin-bottom: 10px;
  text-align: center;
}

/* Floating navigation Area */
.monitoring-platform {
  position: fixed;
  top: 0;
  left: 0;
  color: #fff;
  background-color: #1a1a1a;
  border-radius: 5px;
  width: 420px;
  overflow: hidden;
  z-index: 10;
}

.monitoring-platform p{
  margin: 20px;
  font-weight: lighter;
}

/* Header Styles */
.platform-header {
  background-color: #202020;
  padding: 12px 15px;
  border-bottom: 1px solid #333;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img{
  height: 64px;
  width: auto;
}

.platform-title {
  display: flex;
  flex-direction: column;
}

.title-main {
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #75b277;
}

.title-sub {
  font-size: 14px;
  margin-top: -4px;
  color: #75b277;
}

.platform-name {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

/* Navigation Tabs */
.platform-nav {
  display: flex;
  background-color: #252525;
  border-bottom: 1px solid #333;
}

.nav-item {
  padding: 10px 15px;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.nav-item:hover {
  background-color: #333;
}

.nav-item.active {
  background-color: #1a1a1a;
  border-bottom: 2px solid #75b277;
}

/* Selector Styles */
.selector-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
}

.selector-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.selector-item label {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 4px;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select select {
  appearance: none;
  width: 100%;
  padding: 8px 10px;
  background-color: #292929;
  color: white;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.custom-select select:focus {
  outline: none;
  border-color: #6da36f;
}

.select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.custom-select select:hover {
  background-color: #333;
  border-color: #555;
}

/* For the readonly Kenya country selection */
#selectCountry {
  /* You can uncomment this if you want Kenya to be truly locked */
  /* pointer-events: none; */
  background-color: #292929;
}

/* Responsive styling */
@media (max-width: 992px) {
  .graph-container {
    width: 25vw;
  }
}

@media (max-width: 768px) {
  .graph-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: 50vh;
    margin: 0 0 20px 0;
    right: 0 !important;
    top: 0 !important;
    border-left: none;
    border-top: 3px solid #45a049;
  }
}

