.sticky-fixed {
  position: fixed;
  top: 0;
  z-index: 1500;
}

.float-right {
float:right;
}
.pl-1 {
padding-left: 0.25rem
}
.pl-2 {
padding-left: 0.5rem
}
.pl-3 {
padding-left: 0.75rem
}
.pl-4 {
padding-left: 1rem
}

.bg_dropdown {
background: #1A1C5C;
}
.bg_filters,.bg_opts  {
background: #66348D;
}
.bg_opts:hover {
background-color: rgba(102,52,141,0.8);
}


.cursor-pointer {
cursor: pointer;
}
.cl_info_panel {
text-align: center;
padding: 10px 0px;
margin: 5px; line-height: 1.5;
}

.csam_data_holder {
    width:100%;
    border-radius: 10px;
    background: #EEEEEE;
text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    border:1px solid #BBBBBB;
}
#csamcounter {
    font-size: 48px;
    font-weight: 700;
    margin: 10px 0px 0px;
    text-align: center;
    padding: 20px 0px 0px 0px;
}
.csamcountermeta {
    line-height: 1.2;
    font-size: 24px;
    padding-bottom: 20px;
}
@keyframes subtlePulse {
  0% { transform: scale(1); color: #333; }
  50% { transform: scale(1.05); color: #4caf50; }  /* gentle green highlight */
  100% { transform: scale(1); color: #333; }
}

@keyframes flashGreen {
  0% { color: #333; }
  50% { color: #CC0000; }
  100% { color: #333; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.tab-container {
            max-width: 800px; /* This max-width will now apply within its grid column */
            margin: 0 auto; /* Center within its column */
            background-color: #ffffff;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            width: 100%; /* Take full width of its parent column */
        }

        .tab-headers {
            display: flex;
            border-bottom: 1px solid #e5e7eb; /* Tailwind gray-200 */
            flex-wrap: wrap;
        }

        .tab-header {
            padding: 1rem 1.5rem;
            cursor: pointer;
            font-weight: 600;
            color: #6b7280; /* Tailwind gray-500 */
            transition: all 0.2s ease-in-out;
            border-top-left-radius: 0.5rem;
            border-top-right-radius: 0.5rem;
            flex-grow: 1;
            text-align: center;
            font-size: 0.9rem; /* Slightly smaller for mobile */
            padding: 0.75rem 1rem; /* Reduced padding for mobile */
        }

        /* Medium screens and up: revert to larger padding/font size */
        @media (min-width: 768px) {
            .tab-header {
                font-size: 1rem;
                padding: 1rem 1.5rem;
                flex-grow: 0; /* Don't force equal width on larger screens */
            }
        }

        .tab-header:hover {
            background-color: #f3f4f6; /* Tailwind gray-100 */
            color: #1f2937; /* Tailwind gray-900 */
        }

        .tab-header.active {
            color: #64328a; /* Tailwind indigo-600 */
            border-bottom: 2px solid #64328a; /* Tailwind indigo-600 */
            background-color: #ffffff;
        }

        .tab-content {
            padding: 1.5rem;
            display: none; /* Hidden by default */
            color: #374151; /* Tailwind gray-700 */
            line-height: 1.6;
        }

        .tab-content.active {
            display: block; /* Shown when active */
        }

        /* Styles for the button group (conjoined) */
        .button-group, .csamdemogrp, .csamseverity, .csamavail,.csamavailline, .chi_btn_group,.pdsrc {
            display: flex;
            margin-top: 1rem; /* For mobile stacking */
        }

        .button-group button, .csamdemogrp button, .csamseverity button, .csamavail button,.csamavailline button, .chi_btn_group button , .pdsrc button {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            background-color: #e0e7ff; /* Tailwind indigo-100 */
            color: #64328a; /* Tailwind indigo-600 */
            border: 1px solid #c7d2fe; /* Tailwind indigo-200 */
            border-right-width: 0;
            border-radius: 0;
        }

        .button-group button:first-child, .csamdemogrp button:first-child, .csamseverity button:first-child, .chi_btn_group button:first-child, .pdsrc button:first-child {
            border-top-left-radius: 0.375rem;
            border-bottom-left-radius: 0.375rem;
        }

        .button-group button:last-child , .csamdemogrp button:last-child,  .csamseverity button:last-child,  .chi_btn_group button:last-child,  .pdsrc button:last-child {
            border-top-right-radius: 0.375rem;
            border-bottom-right-radius: 0.375rem;
            border-right-width: 1px;
        }

        .button-group button:hover,.csamdemogrp button:hover, .csamseverity button:hover , .chi_btn_group button:hover , .pdsrc button:hover  {
            background-color: #c7d2fe; /* Tailwind indigo-200 */
            color: #3730a3; /* Tailwind indigo-800 */
        }

        .button-group button.active,.csamdemogrp button.active, .csamseverity button.active, .chi_btn_group button.active, .pdsrc button.active  {
            background-color: #64328a; /* Tailwind indigo-600 */
            color: #ffffff;
            border-color: #64328a;
            z-index: 1;
            position: relative;
        }
		.button-group .csamavailline button  {
		background-color: #243897; color:#FFFFFF;
		}	
		.button-group .csamavailline button:active,  .csamavailline button:hover {
		background-color: #536AD7; color:#FFFFFF;
		}

        /* Styles for the new single line graph button */
        .single-button-right {
		display: flex;
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease-in-out;
            background-color: #000249; /* Tailwind green-100 */
            color: #EFEFEF; /* Tailwind green-600 */
            border: 1px solid #000249; /* Tailwind green-200 */
            border-radius: 0.375rem; /* Rounded corners for single button */
            margin-top: 1rem; /* For mobile stacking */
            margin-left: 0.5rem; /* Small gap from button group on desktop */
        }

        .single-button-right:hover {
            background-color: #0005BF; /* Tailwind green-200 */
            color: #FFFFFF; /* Tailwind green-800 */
        }

        .single-button-right.active {
            background-color: #0005BF; /* Tailwind green-600 */
            color: #ffffff;
            border-color: #0005BF;
        }


        /* Container for title and buttons to float them */
        .panel-header-with-buttons {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            flex-direction: column; /* Stack vertically by default */
            align-items: flex-start;
        }

        /* Wrap buttons for better alignment when stacked on mobile */
        .chart-controls {
            display: flex;
            flex-wrap: wrap; /* Allow buttons to wrap if needed */
            align-items: center;
            /* Remove margin-top from individual button group/single button for better control here */
            margin-top: 0;
        }

        /* Medium screens and up: revert to horizontal layout */
        @media (min-width: 768px) {
            .panel-header-with-buttons {
                flex-direction: row;
                align-items: right;
            }
            .button-group {
                margin-top: 0;
            }
            .single-button-right {
                margin-top: 0; /* Remove top margin when horizontal */
            }
        }
		
.itl_tooltip {
position:absolute; display:none; background:rgba(255,255,255,0.9); border:none; padding:5px; z-index:1000; border-radius: 5px; line-height: 28px; -webkit-box-shadow: 1px 2px 4px 1px rgba(0,0,0,0.54); box-shadow: 1px 2px 4px 1px rgba(0,0,0,0.54); width: 250px
}	

.itl_tooltip .itl_country {
font-weight: 500;
font-size: 0.875rem;
text-transform: uppercase;
}

.itl_tooltip ul.itl_ul {
padding: 5px 0px 15px 20px;
}

.itl_tooltip ul.itl_ul li {
list-style: circle;
line-height: 1.25;
font-size: 0.75rem;
font-weight: 800;
}


	
.tooltip_btn {
color:#FFFFFF;
background: #14163F; 
padding: 5px 9px;
border-radius: 4px;
margin: 2px;width:100%;
font-size: 13px;
}

.bg-orange {
background: #FE9900;
color:#222222;
}

.map-control {
max-width: 100px;
max-height: 100px;
}

.accordion  { width: 100%; border: 1px solid #ccc; border-radius: 4px; }
    .accordion-item { border-bottom: 1px solid #ccc; }
    .accordion-header {
        background: #64328a;
        color: white;
        padding: 10px;
        cursor: pointer;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
.accordion-content {
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
    .accordion-header:hover { background: #7c4db3; }
    .accordion-icon { transition: transform 0.2s ease; }
    .accordion-icon.open { transform: rotate(180deg); }
	
	
	
     .cards-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 16px;
	  margin-bottom: 25px;
    }

    .card {
      background: #ECF0FF;
      border-radius: 12px;
      padding: 16px;
      text-align: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
      transition: transform 0.2s ease;
    }

    .card:hover {
      transform: translateY(-3px);
    }

    .card-icon {
      font-size: 1.5rem;
      color: #7c4db3;
      margin-bottom: 8px;
    }

    .card-value {
      font-size: 1.4rem;
      font-weight: bold;
      color: #7c4db3;
    }

    .card-text {
      font-size: 0.9rem;
      color: #6b7280;
      margin-top: 4px;
    }
	
.hidden_element {
max-height: 0;
padding-top: 0;
padding-bottom: 0;
opacity: 0;
}

/* jquery Modal sizes */
.blocker {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  z-index: 1;
  padding: 20px;
  box-sizing: border-box;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.75);
  text-align: center;
}

.blocker:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.05em;
}

.blocker.behind {
  background-color: transparent;
}

.modal {
  display: none;
  vertical-align: middle;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 90%;
  max-width: 900px;
  background: #fff;
  /* MODIFICATION: Adjusted padding to account for close button */
  padding: 25px 35px 15px 30px; /* Top, Right, Bottom, Left */
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -o-border-radius: 8px;
  -ms-border-radius: 8px;
  border-radius: 8px;
  -webkit-box-shadow: 0 0 10px #000;
  -moz-box-shadow: 0 0 10px #000;
  -o-box-shadow: 0 0 10px #000;
  -ms-box-shadow: 0 0 10px #000;
  box-shadow: 0 0 10px #000;
  text-align: left;
  height: 90%;
  overflow-y: auto;
}

.modal a.close-modal {
  position: absolute;
  z-index:12500;
  /* MODIFICATION: Force positioning outside the modal's top-right corner */
  top: 5px; /* Adjust as needed, slightly more negative */
  right: 5px; /* Adjust as needed, slightly more negative */
  display: block;
  width: 30px;
  height: 30px;
  text-indent: -9999px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAB90RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgOLVo0ngAAAN+SURBVGiB5ZtBSxtBFMd/G0IDpeKhq20uvXrytBClFGMvil/BL+BVSC9C24N4McGvEEXBL5BDFA+CFvVSBE96cglCe7CipFayu9ntQTekiUnMZnYmdv/wDtnsbuY38zbz3uwbjZC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5CYII=');
}

.modal-spinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  padding: 12px 16px;
  border-radius: 5px;
  background-color: #111;
  height: 20px;
}

.modal-spinner > div {
  border-radius: 100px;
  background-color: #fff;
  height: 20px;
  width: 2px;
  margin: 0 1px;
  display: inline-block;
  -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.modal-spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.modal-spinner .rect3 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

.modal-spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

@-webkit-keyframes sk-stretchdelay {
  0%, 40%, 100% {
    -webkit-transform: scaleY(0.5);
  }
  20% {
    -webkit-transform: scaleY(1.0);
  }
}

@keyframes sk-stretchdelay {
  0%, 40%, 100% {
    transform: scaleY(0.5);
    -webkit-transform: scaleY(0.5);
  }
  20% {
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}

/* ---------------------------------------------------- */
/* MEDIA QUERIES FOR RESPONSIVE DESIGN */
/* ---------------------------------------------------- */

/* Styles for smaller devices (e.g., phones, up to 767px) */
@media (max-width: 767px) {
  .modal {
    width: 95%;
    max-width: none;
    padding: 10px 15px; /* Adjust as needed for mobile */
    /* Ensure the close button is still visible and accessible */
    padding-top: 25px; 
  }
}

/* Styles for tablets and medium-sized screens (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .modal {
    width: 80%;
    max-width: 600px;
  }
}

/* Styles for larger desktops and screens (1025px and up) */
@media (min-width: 1025px) {
  .modal {
    width: 80%;
    max-width: 1200px;
  }
}

.accordion-body {
color:#303030;
}