/* Additional styling for map container */
#map {
  height: 100%;
  width: 100%;
}
.sidebar {
  height: 100%;
  overflow-y: auto;
}
.map-controls {
  position: absolute;
  top: 20%;
  left: 20px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.0);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Reset margins for control elements */
.map-controls .control label,
.map-controls .control select {
  margin-bottom: 0;
}

.control {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 4px;
  margin-bottom: 8px;
}

.control:last-child {
  margin-bottom: 0;
}

.control > input[type="checkbox"] {
  grid-row: 1;
  grid-column: 1;
  margin: 0;
  align-self: center;
}

.control > label {
  grid-row: 1;
  grid-column: 2;
  margin: 0;
  align-self: center;
  white-space: nowrap;
}

.control > select {
  grid-row: 2;
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}
/* ********************20 STARS******************** */
  /* Map Controls Styling */
  /* ********************20 STARS******************** */
  /* .map-controls {
      position: absolute;
      top: 10px;
      left: 10px;
      z-index: 5;
      background: rgba(0, 0, 0, 0.0);
      padding: 10px;
      border-radius: 5px;
    } */
    .map-controls .control {
      margin-bottom: 10px;
    }
    /* ********************20 STARS******************** */
    /* Tower Info Sidebar Styling */
    /* ********************20 STARS******************** */
    .tower-sidebar {
      position: absolute;
      top: 0;
      left: -300px; /* Initially hidden off-screen */
      width: 300px;
      height: 100%;
      background-color: #222;
      color: #fff;
      overflow-y: auto;
      z-index: 10;
      padding: 15px;
      transition: left 0.3s ease;
    }
    .tower-sidebar.open {
      left: 0;
    }
    .tower-sidebar h4 {
      margin-top: 0;
      margin-bottom: 15px;
    }
    /* Each tower detail uses proper spacing */
    .tower-detail {
      margin-bottom: 0.5rem;
    }
    /* ********************20 STARS******************** */
    /* Close Button Styling (red square with shadow) */
    /* ********************20 STARS******************** */
    .close-sidebar-btn {
      background-color: red;
      border: none;
      color: #fff;
      font-size: 18px;
      width: 30px;
      height: 30px;
      text-align: center;
      line-height: 30px;
      border-radius: 4px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.5);
      position: absolute;
      top: 10px;
      right: 10px;
      cursor: pointer;
    }
    /* ********************20 STARS******************** */
    /* Category Sidebar Styling */
    /* ********************20 STARS******************** */
    .sidebar {
      height: 100%;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: #888 #f1f1f1;
    }
    .sidebar::-webkit-scrollbar {
      width: 8px;
    }
    .sidebar::-webkit-scrollbar-track {
      background: #f1f1f1;
    }
    .sidebar::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 4px;
    }
    .sidebar::-webkit-scrollbar-thumb:hover {
      background: #555;
    }
    /* ********************20 STARS******************** */
    /* Loading Div Styling */
    /* ********************20 STARS******************** */
    #loadingDiv {
      display: none;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(0,0,0,0.7);
      color: #fff;
      padding: 10px 20px;
      border-radius: 5px;
      z-index: 15;
    }
    /* ********************20 STARS******************** */
    /* Flash Alert Styling */
    /* ********************20 STARS******************** */
    #flashAlert {
      display: none;
      position: absolute;
      top: 20px;
      right: 20px;
      z-index: 20;
    }

    /* Header styles */
header {
    background: linear-gradient(to bottom, #333333, #444444); /* Gradient effect */
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between elements on smaller screens */

  }
  
  /* For medium and larger screens, align items horizontally */
  @media (min-width: 768px) {
    header {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }
  }
  
  /* Logo styling */
  #logo-img {
    width: 100px; /* Adjust size as needed */
    height: auto;
    border-radius: 10%; /* Rounded corners */
    margin-right: 10px; /* Space between logo and heading */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6), 
                -5px -5px 10px rgba(255, 255, 255, 0.2); /* 3D shadow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Hover effect for logo */
  #logo-img:hover {
    transform: scale(1.05) rotate(3deg); /* Slight hover effect */
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.7), 
                -8px -8px 15px rgba(255, 255, 255, 0.3); /* Enhanced shadow on hover */
  }
  
  /* H1 Styling */
  h1 {
    margin: 0;
    font-size: 2.2rem; /* Smaller default font size for mobile */
    color: #ff6e00;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center; /* Center-align on smaller screens */
  }
  
  @media (min-width: 768px) {
    h1 {
      
      text-align: left; /* Align to the left on larger screens */
    }
  }
  
  /* H1 Heading Styling */
  #h1_heading {
    color: #007bff; /* Initial color */
    background: linear-gradient(60deg, #ff6e00, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  /* H1 Heading Hover Effect */
  #h1_heading:hover {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.7);
    transform: scale(1.02);
  }
  
  /* Responsive layout adjustments */
  @media (max-width: 767px) {
    header {
      text-align: center;
      gap: 15px;
    }
    #logo-img {
      margin-right: 0; /* Remove right margin for better centering */
    }
    h1 {
      flex-direction: column; /* Stack heading and subheading vertically */
      gap: 5px; /* Adjust spacing for stacked layout */
    }
  }

  /* Logo styling */
  #logo-img {
    width: 100px; /* Adjust size as needed */
    height: auto;
    border-radius: 10%; /* Rounded corners */
    margin-right: 10px; /* Space between logo and heading */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6), 
                -5px -5px 10px rgba(255, 255, 255, 0.2); /* 3D shadow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Hover effect for logo */
  #logo-img:hover {
    transform: scale(1.05) rotate(3deg); /* Slight hover effect */
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.7), 
                -8px -8px 15px rgba(255, 255, 255, 0.3); /* Enhanced shadow on hover */
  }
  
  /* H1 Styling */
  h1 {
    margin: 0;
    font-size: 2.2rem; /* Smaller default font size for mobile */
    color: #ff6e00;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center; /* Center-align on smaller screens */
  }
  
  @media (min-width: 768px) {
    h1 {
      
      text-align: left; /* Align to the left on larger screens */
    }
  }
  
  /* H1 Heading Styling */
  #h1_heading {
    color: #007bff; /* Initial color */
    background: linear-gradient(60deg, #ff6e00, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  /* H1 Heading Hover Effect */
  #h1_heading:hover {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.7);
    transform: scale(1.02);
  }
  
  /* Responsive layout adjustments */
  @media (max-width: 767px) {
    header {
      text-align: center;
      gap: 15px;
    }
    #logo-img {
      margin-right: 0; /* Remove right margin for better centering */
    }
    h1 {
      flex-direction: column; /* Stack heading and subheading vertically */
      gap: 5px; /* Adjust spacing for stacked layout */
    }
  }
  
/* Navbar container */
.navbar {
  position: relative;
  background-color: black;
  /* padding: 10px; */
}

/* Navigation list styling with equal distribution */
.nav-tabs {
  list-style-type: none;
  margin: 0;
  /* padding: 10px; */
  display: flex;
  align-items: start;
  justify-content: space-between; /* Distributes items evenly */
  width: 100%;
  border: none;       /* Remove any border */
  box-shadow: none;   /* Remove any shadow that might appear as a line */
}

/* Ensure each nav item takes equal space and centers its content */
.nav-tabs li {
  flex: 1;
  text-align: start;
}

/* Navigation links */
.nav-tabs li a {
  color: chocolate;
  text-decoration: none; /* Remove underline */
  padding: 5px  15px;
  border-radius: 5px;
  display: flex; /* Makes the entire area clickable */
}

.nav-tabs li a:hover {
  background-color: #555;
}

/* Hamburger button styling */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: white;
}

/* Media Query for Tablet and Mobile Screens */
@media (max-width: 768px) {
  /* Hide nav links by default */
  .nav-tabs {
    display: none;
    flex-direction: column;
    background-color: black;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
  }
  /* Show nav menu when active */
  .nav-tabs.active {
    display: flex;
  }
  /* Show the hamburger button */
  .navbar-toggle {
    display: block;
  }
}

