
html, body {
      height: 100%;
      margin: 0;
    }

  body {
  font-family: 'Open Sans', sans-serif, Arial, sans-serif;
  color:#292929;
  line-height: 1.6;
  }

  .container-fluid {
    margin-top:20px;
  }

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
  min-height: 600px;
}

#typology_map, #radial_map {
  width: 100%;
  max-width: 950px;
  height: auto;
  margin: 0 auto;
}

.well {
  background-color: white !important;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
  min-height: 40vh;       
  height: auto;   
  overflow-y: hidden;
  overflow-x: auto;
  transition: all 0.4s ease-in-out; 
}

.form-group {margin-top:10px;}

#logo {
  position: absolute;
  top: 55px;
  right: 50px;
  width: 120px;
  z-index: 2;
}

.btn-wsjg, .btn-wsjg:visited {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 0 25px 25px 0;
  margin-top: 1.5rem;
  color: #FFF;
  background-color: #0277BD;
  border: none;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  text-shadow: 3px 6px 10px rgba(255, 255, 255, 0.05);
}

.btn-circle {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  text-align: center;
  font-size: 13px;
  line-height: 22px;
  background: #fff;
  color: #FF9800;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid #FF9800;
  position: absolute;
  top: 5%;
  right: 5%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-circle:hover {
  color: #fff;
  background: #FF9800;
  border-color: #FF9800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}


.btn-wsjg-sm, .btn-wsjg-sm:visited {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 0 15px 15px 0;
  margin-top: 1rem;
  color: #0277BD;
  border: 1px solid #0277BD;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-wsjg:hover, .btn-wsjg:active {
  background-color: #FF9800;
  color: #FFF;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.12);
}

.wsjg-url {
  text-decoration: none;
  margin-top: 10px;
  display: block;
  padding: 20px auto;
}

tbody tr:first-child {
  color:#0277BD ;
}

h1 {
  font-size: 2.6rem;
  color: #1A237E;
  font-weight: 300;
  font-family: 'Roboto', sans-serif;
  text-align: left;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  color: #0277BD;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.07);
  margin-bottom:10px;
  display: inline-block;
}

h3 {
  font-size: 2rem;
  color: #0277BD;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

h4 {
  font-size: 1.8rem;
  color: #FF9800;
}

.modal-content {
 background-color: rgba(255, 255, 255, 0.95); 
}

.fade-container {
  transition: opacity 0.4s ease;
}

#DataTables_Table_0_filter {
  display:none;
}

/* Default tab appearance (grey) */
[role="presentation"] li a {
  background-color: rgba(240, 237, 237, 0.45) !important;
    color: #003366 !important;  /* Dark text */
  font-weight: bold;
}

#main_tabs li a,
#main_tabs li a,
#main_tabs li a {
  transition: background-color 0.3s ease;
}

/* Style tabs 1, 2, and 3 */
#main_tabs li:nth-child(1) a,
#main_tabs li:nth-child(2) a,
#main_tabs li:nth-child(3) a {
  background-color: #e8f0fe !important;  
}

#main_tabs li:nth-child(1) a:hover,
#main_tabs li:nth-child(2) a:hover,
#main_tabs li:nth-child(3) a:hover {
  background-color: #0277BD !important;  
  color:#fff!important;
}

/* Glare */
#main_tabs li a::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

/* Trigger single animation on hover */
#main_tabs li a:hover::after {
  animation: glareSweep 0.8s ease-out forwards;
}

/* Keyframes for one-time sweep */
@keyframes glareSweep {
  0% {
    left: -100%;
    opacity: 1;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

/* Style tabs 4,5 and 6 */
#main_tabs li:nth-child(4) a,
#main_tabs li:nth-child(5) a,
#main_tabs li:nth-child(6) a {
  background-color:rgba(215, 211, 211,0.15);
}

#main_tabs li:nth-child(4) a:hover,
#main_tabs li:nth-child(5) a:hover,
#main_tabs li:nth-child(6) a:hover {
  background-color:rgba(215, 211, 211,0.35);
}

#main_tabs li.active a {
  background-color: #ffffff !important; 
  color: #002346 !important;              
}

#vng_logo {margin-bottom:20px;}

    @keyframes pulse {
      0%   { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
      70%  { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
      100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
    }

    .pulse-effect {
      animation: pulse 1.5s infinite;
    }

/* Media Queries */
@media screen and (min-width: 768px) {
  .col-sm-4 {
    max-width: 300px;
  }
  .col-sm-8 {
    width: calc(100% - 300px);
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
  }

  .sidebar .form-group {
    width: 100%;
  }

  .sidebar .form-group.inline {
    display: inline-block;
    width: 48%;
    margin-right: 2%;
    margin-bottom: 10px;
  }

  .sidebar .form-group.inline:last-child {
    margin-right: 0;
  }

  .main-panel {
    margin-top: 20px;
  }

  .col-sm-4, .col-sm-8 {
    width: 100%;
  }

  #typology_map, #radial_map {
    height: 500px !important;
  }
}

#timeoutOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000;
  font-size: 1.6rem;
}

#timeoutOverlay button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007BFF;
  color: #FFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#timeoutOverlay button:hover {
  background-color: #0056b3;
}

#copyright {
background-color:transparent; 
padding: 20px; 
margin-top: 20px; 
border-top: 1px solid #e7e7e7;
min-height:60px;
height:auto;
font-size: 1.2rem;
}

/* Custom tooltip styles */
.tooltip {
  font-size: 13px; 
  background-color: transparent; 
  color: #fff; 
  border-radius: 5px; 
  padding: 6px 10px; 
  opacity: 0.85 !important; 
}

.tooltip-inner {
  max-width: 300px; 
  background-color: #0277BD; 
  color: white; 
  border-radius: 5px; 
  padding: 10px; 
  font-size: 13px; 
  text-align: center; 
  font-weight:300;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2); 
}

.tooltip .arrow::before {
  border-top-color: #0277BD; 
}

/* Adjust tooltip width for smaller screens */
@media (max-width: 768px) {
  .tooltip-inner {
    max-width: 250px; 
    font-size: 12px;  
  }
}

@media (max-width: 480px) {
  .tooltip-inner {
    max-width: 180px; 
    font-size: 11px;
  }
}