html,
body,
#viewDiv,
#container {
  padding: 0;
  margin: 0;
  height: 95%;
  width: 100%;
  color: #323232;
  font-family: "Avenir Next W00", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#searchInputRes {
  padding: 10px;
  margin: 0;
  height: 95%;
  max-width: 20%;
  color: #323232;
  font-family: "Avenir Next W00", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color:#333333;
  font-size:90%;
  display:none;
  color: #ffffff;
}
#searchInputRes a
{color: #888;}

body {
	background: radial-gradient(#333333, #000000);
}


.FlagLibyajpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Libya.jpg'); 
    background-size: cover; 
    background-position: center; 
}

.FlagBelarusjpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Belarus.jpg'); 
    background-size: cover; 
    background-position: center; 
}

.FlagBraziljpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Brazil.jpg'); 
    background-size: cover; 
    background-position: center; 
}

.FlagChinajpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/China.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagFrancejpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/France.jpg'); 
    background-size: cover; 
    background-position: center; 
}

.FlagIndiajpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/India.jpg'); 
    background-size: cover; 
    background-position: center; 
}

.FlagIranjpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Iran.jpg'); 
    background-size: cover; 
    background-position: center; 
}

.FlagIsraeljpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Israel.jpg'); 
    background-size: cover; 
    background-position: center; 
}

.FlagLebanonjpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Lebanon.jpg'); 
    background-size: cover; 
    background-position: center; 
}

.FlagMexicojpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Mexico.jpg'); 
    background-size: cover; 
    background-position: center; 
}

.FlagNigeriajpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Nigeria.jpg'); 
    background-size: cover; 
    background-position: center; 
}

.FlagNorthKoreajpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/NorthKorea.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagPakistanjpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Pakistan.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagPalestinejpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Palestine.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagRomaniajpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Romania.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagRussiajpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Russia.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagSouthKoreajpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/SouthKorea.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagSpainjpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Spain.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagSyriajpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Syria.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagTunisiajpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Tunisia.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagTurkeyjpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Turkey.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagUKjpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/UK.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagUkrainejpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Ukraine.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagUnitedArabEmiratesjpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/UnitedArabEmirates.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagUnitedStatesjpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/UnitedStates.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagUzbekistanjpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Uzbekistan.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.FlagVietnamjpg
{    width: 300px; 
    height: 200px; 
    background-image: url('../images/flags/Vietnam.jpg'); 
    background-size: cover; 
    background-position: center; 
}



.esri-widget__heading {
    color: #FFFFFF; 
}

h3{margin:5px;}


.fa{    
font-size: 180%;
margin: 10px;
color: aqua;
	}

.tooltip{
	position:absolute;
	background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
}



li{
	list-style-type:none;
	padding-top:1em;
}
li a{color: #cccccc;}


#searchPlaceHolder a{color: #888;}


table {
  border: 1px solid #888;
  border-collapse: collapse;
}
td
{padding-top:0.5em;
padding-bottom:0.5em;
}

ol {
  display: block;
  list-style-type: decimal;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
  padding-left: 40px;
}



#maptitle{
	color: white;
  box-shadow: none;
  	
}


#viewDiv canvas {
  filter: drop-shadow(0 0 0.25rem #3d85c6);
}


.esri-popup {}

.esri-popup__content {
  margin: 0;
}

.esri-popup__header-title {
  font-size: 18px;
}

.esri-popup__header-title:hover{
	background-color: #000000;
}

.esri-popup__footer {
  display: none;
}

.esri-feature__main-container .popupImage {
  /*max-height: 250px;*/
  overflow: hidden;
  background-color:#333333;
  color:#ffffff;
  display: flex;
    justify-content: center;
    align-items: center;
}

.esri-widget {
  color:#ffffff;
  background-color:#333333;
}

.esri-component {    font-size: 1.2em;}

.popupImage > img {
  width: 100%;
}

.popupImageCaption {
  text-align: center;
  font-size: 0.9em;
  padding: 0.1em 1.5em 0;
}

.popupDescription {
  padding: 2em;
  word-break: break-word;

}

p.info {
  margin-bottom: 2em;
  font-size: 1.1em;
  text-align:justify;
}

.popupDescription > p:last-child {
  margin-bottom: 0;
}

.popupCredits {
  font-size: 0.8em;
  padding: 0 2.5em 0.5em 2.5em;
}

.esri-attribution__sources a {
  color: #323232;
}

/* intro and about page */

#viewDiv {
  filter: blur(10px);
  transition: filter 0.4s;
}

#container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
  box-sizing: border-box;
}

#introDiv {
  position: relative;
  width: 60%;
  max-width: 700px;
  min-height: 350px;
  max-height:100%;
  overflow-y:scroll;
  flex: 1;
  background-color: #000000;
  color:#ffffff;
  padding: 3em;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  z-index:100;
}

#introDiv h1 {
  margin-top: 0;
  margin-bottom: 1em;
}

#introDiv p {
  line-height: 1.5em;
}

#container a:hover {
  color: white;
  background: rgb(2, 105, 161);
}

#container a {
  color: rgb(2, 105, 161);
  text-decoration: none;
  font-weight: bold;
}

button.esri-icon-close {
  position: absolute;
  top: 1.5em;
  right: 1.5em;
  background: transparent;
  border: none;
  cursor: pointer;
  color:#ffffff;
}

#about {
  color: white;
  box-shadow: none;
  cursor: pointer;
}

.hidden {
  display: none;
}

#start-globe {
  border-radius: 0.2em;
  padding: 0.8em 1.5em;
  font-size: 1em;
  margin: 2em auto;
  display: block;
  border: 1px solid rgba(2, 105, 161, 1);
  background: transparent;
  color: rgba(255,255,255, 1);
}

#start-globe:hover {
  color: white;
  background: rgb(2, 105, 161);
  border: 1px solid white;
  transition: all 0.5s;
  cursor: pointer;
}

#others {
  color: white;
  box-shadow: none;
  cursor: pointer;
}

#others-container {
  position: absolute;
  top: 0;
  left: 0;
  height:100%;
  width:100%;
  display: none;
  justify-content: center;
  overflow-y: auto;
  padding: 1em;
  box-sizing: border-box;
  color:#ffffff;
  background: rgba(50, 50, 50, .95);
  word-break: break-word;  
  z-index: 10;
}

#othPlaceHolder
{padding:1em;}

#search {
  color: white;
  box-shadow: none;
  cursor: pointer;
}

#searchDiv {
  position: relative;
  width: 80%;
  max-width: 900px;
  min-height: 350px;
  max-height:90%;
  flex: 1;
  background-color: #000000;
  color:#ffffff;
  padding: 3em;
  
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  overflow-y:auto;
  z-index:1;
  word-break:break-word;
}

#searchDiv img{
	width:50%;
}

#searchDiv .popupImageCaption{
	width:50%;
}

#search-container {
   padding: 0;
  margin: 0;
  height: 100%;
  max-height:100%;
  width: 100%;
  color: #323232;
  font-family: "Avenir Next W00", "Helvetica Neue", Helvetica, Arial, sans-serif;
  left:0;
  top:0;
    right: 0;
    bottom: 0;
    position:absolute;
    justify-content: center;
    align-items: center;
    padding: 1em;
    box-sizing: border-box;
	display:none;
	    z-index: 10;
}

#searchPlaceHolder
{padding:1em;}

#searchPnl{width:100%;}



#malware {
  color: rgb(253, 255, 16);
  box-shadow: none;
  cursor: pointer;
  
}

#relationship {
  color: white;
  box-shadow: none;
  cursor: pointer;
}

#relationship-container {
  position: absolute;
  top: 0;
  left: 0;
  height:100%;
  width:100%;
  display: none;
  
  overflow-y: auto;
  padding: 1em;
  box-sizing: border-box;
  color:#ffffff;
  background: rgba(50, 50, 50, .95);
      z-index: 10;
}

#relPlaceHolder
{padding:1em;}


.relTitle{color: aqua;}
.relTitle2{}
.relchkTitle{padding:10px;}
.relAPTTargets{display:none;margin:10px;}
.relAPTTargetCategories{display:none;margin:10px;}
.relAPTTechniques{display:none;margin:10px;}
.relAPTTools{display:none;margin:10px;}
.relTargetsAPT{display:block;margin:20px;}
.relchk{ 
display: flex;
padding: 10px;}
#relAPTchk{
	
	display: flex;
    padding: 10px;
    background-color: rgb(102, 102, 102);
	max-width: fit-content
    


}
#relAPT{display:none;}
#relTargets{display:none;}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}


.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}


.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}



#fullstats {
  color: white;
  box-shadow: none;
  cursor: pointer;
}

#fullstats-container {
  position: absolute;
  top: 0;
  left: 0;
  height:100%;
  width:100%;
  display: none;
  justify-content: center;
  overflow-y: auto;
  padding: 1em;
  box-sizing: border-box;
  color:#ffffff;
  
  background: rgba(50, 50, 50, .95);
      z-index: 10;
  
}

#fulPlaceHolder
{}






.esri-popup--is-docked-top-left .esri-popup__main-container, .esri-popup--is-docked-top-right .esri-popup__main-container, .esri-popup--is-docked-bottom-left .esri-popup__main-container, .esri-popup--is-docked-bottom-right .esri-popup__main-container {
    max-height: 100%;

}
.esri-feature a {
    color: #dddddd;
}
.esri-feature a:hover, .esri-feature a:focus {
    color: #ffffff;
}

.detButton
{
	padding:0.5em; 
	border:1px solid #ffffff;
}
.APTname
{    color: aqua;
     font-size: 2em;
	 
	 }
.APTnameclickable
{    color: aqua;
     font-size: 2em;
	 cursor: pointer;
	 
	 }	 


.details {
        display: none;
    }
.opendetails {
        display: block;
    }
.PanelContainer
{
	width:100%;
	
}
.infoTitle
{
	font-size: 1.4em;
	
}

.infoTool
{    color: aqua;
     text-decoration:bold;
	 font-size: 1.2em;
	 }
	 
.infoTTP
{    color: aqua;
     text-decoration:bold;
	 font-size: 1.2em;
	 }

#chart {
  color: white;
  box-shadow: none;
  cursor: pointer;
}



#chart-container {
  
  bottom: 70px;
  left: 0;

  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 1em;
  box-sizing: border-box;
  color:#ffffff;
  background: rgba(50, 50, 50, .5);
  filter:blur(10px);
  
}



#IdChart1
{background: rgba(51, 170, 51, .2);
max-height:150px;
max-width:100%;

margin:5px;}

#IdChart2
{background: rgba(16, 255, 255, .2);
max-height:150px;
max-width:100%;
margin:5px;}

#IdChart3
{background: rgba(255, 16, 101, .2);
max-height:150px;
max-width:100%;
margin:5px;}


#IdChart4
{background: rgba(253, 255, 16, .2);
max-height:150px;
max-width:100%;
margin:5px;}

#IdChart5
{background: rgba(255, 16, 239, .2);
max-height:150px;
max-width:100%;
margin:5px;}

#IdChart6
{background: rgba(33, 7, 231, .2);
max-height:150px;
max-width:100%;
margin:5px;}

@media screen and (min-width: 800px) {
	
	html,
body,
	#viewDiv,
#container {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  color: #323232;
  font-family: "Avenir Next W00", "Helvetica Neue", Helvetica, Arial, sans-serif;
}


#introDiv {
  position: relative;
  width: 60%;
  max-width: 700px;
  min-height: 350px;
  flex: 1;
    overflow:auto;
  background-color: #000000;
  color:#ffffff;
  padding: 3em;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  z-index:1;
}


#chart-container {
  position: absolute;
  bottom: 70px;
  left: 0;
  /*max-height:250px;*/
  
  
  display: flex;
  justify-content: left;
  overflow-x: auto;
  padding: 1em;
  box-sizing: border-box;
  color:#ffffff;
  background: rgba(50, 50, 50, .5);
  
  
}
#IdChart1
{background: rgba(51, 170, 51, .2);
max-height:150px;
max-width:200px;
float:left;
margin:5px;}

#IdChart2
{background: rgba(16, 255, 255, .2);
max-height:150px;
max-width:200px;
float:left;
margin:5px;}

#IdChart3
{background: rgba(255, 16, 101, .2);
max-height:150px;
max-width:200px;
float:left;
margin:5px;}


#IdChart4
{background: rgba(253, 255, 16, .2);
max-height:150px;
max-width:200px;
float:left;
margin:5px;}

#IdChart5
{background: rgba(255, 16, 239, .2);
max-height:150px;
max-width:200px;
float:left;
margin:5px;}

#IdChart6
{background: rgba(33, 7, 231, .2);
max-height:150px;
max-width:200px;
float:left;
margin:5px;}

/* Enhanced Search Autocomplete Styles */
.autocomplete-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #00ffff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    color: #ffffff;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    font-size: 14px;
    transition: all 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    transform: translateX(4px);
}

.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .autocomplete-dropdown {
        font-size: 12px;
    }
    
    .autocomplete-item {
        padding: 10px 12px;
    }
}



}

/* Filter Sidebar Styles */
#filter-sidebar {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

#filter-toggle {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #555;
  color: #00ffff;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#filter-toggle:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

#filter-panel {
  position: absolute;
  top: 60px;
  left: 0;
  width: 320px;
  max-height: 80vh;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #555;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.3s ease;
}

#filter-panel.hidden {
  display: none;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 255, 255, 0.1);
  border-bottom: 1px solid #555;
}

.filter-header h2 {
  margin: 0;
  color: #00ffff;
  font-size: 18px;
  font-weight: bold;
}

.filter-header h2 i {
  margin-right: 8px;
  font-size: 16px;
}

#close-filter {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
}

#close-filter:hover {
  color: #00ffff;
}

.filter-content {
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group h3 {
  color: #00ffff;
  font-size: 14px;
  margin: 0 0 12px 0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group h3 i {
  margin-right: 8px;
  font-size: 12px;
}

.date-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.date-inputs label {
  color: #ccc;
  font-size: 12px;
  margin-bottom: 4px;
}

.date-inputs select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #555;
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  font-size: 13px;
}

.date-inputs select:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.checkbox-group label:hover {
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #00ffff;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-group label {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.radio-group label:hover {
  background: rgba(255, 255, 255, 0.05);
}

.radio-group input[type="radio"] {
  margin-right: 10px;
  accent-color: #00ffff;
}

.show-more {
  margin-top: 10px;
}

.show-more button {
  background: transparent;
  border: 1px solid #555;
  color: #00ffff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.show-more button:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: #00ffff;
}

.filter-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #555;
}

.btn-primary, .btn-secondary {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #00ffff, #0099cc);
  color: #000;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00cccc, #0077aa);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid #555;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #777;
}

.filter-count {
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 4px;
  color: #00ffff;
  font-size: 13px;
  font-weight: bold;
}

/* Mobile responsiveness for filter sidebar */
@media screen and (max-width: 768px) {
  #filter-sidebar {
    position: fixed;
    top: 10px;
    left: 10px;
  }
  
  #filter-panel {
    width: 280px;
    max-height: 70vh;
  }
  
  .filter-content {
    padding: 15px;
  }
}

/* Animation for filter panel */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#filter-panel:not(.hidden) {
  animation: slideIn 0.3s ease-out;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Screen reader only text */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Enhanced focus indicators for better keyboard navigation */
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #00ffff !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.3) !important;
}

/* Error message styling */
.error-message {
  color: #ff6b6b !important;
  font-size: 0.875em !important;
  display: block !important;
  margin-top: 4px !important;
  font-weight: 500 !important;
}

/* Enhanced button styling for accessibility */
button[aria-label] {
  position: relative;
}

button[aria-label]:hover::after {
  content: attr(aria-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #00ffff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10000;
  pointer-events: none;
}

/* Enhanced autocomplete accessibility */
.autocomplete-item[aria-selected="true"] {
  background-color: #00ffff !important;
  color: #000 !important;
}

/* Form label improvements */
label {
  display: block !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
  color: #ffffff !important;
}

/* Help text styling */
small[id$="-help"] {
  color: #cccccc !important;
  font-size: 0.8em !important;
  font-style: italic !important;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
  .autocomplete-item {
    border: 1px solid #ffffff !important;
  }
  
  button {
    border: 2px solid #00ffff !important;
  }
}

/* ===== THEME SYSTEM ===== */

/* CSS Custom Properties for Theme Support */
:root {
  --bg-primary: #333333;
  --bg-secondary: #2a2a2a;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --accent-primary: #00ffff;
  --accent-secondary: #00cccc;
  --border-color: #555555;
  --shadow-color: rgba(0, 255, 255, 0.1);
  --bg-gradient: radial-gradient(#333333, #000000);
}

/* Theme Toggle Button */
#theme-toggle {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  background: var(--bg-secondary) !important;
  border: 2px solid var(--accent-primary) !important;
  color: var(--text-primary) !important;
  padding: 10px 15px !important;
  border-radius: 25px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  min-width: 90px !important;
  justify-content: center !important;
}

#theme-toggle:hover {
  background: var(--accent-primary) !important;
  color: var(--bg-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px var(--shadow-color) !important;
}

#theme-toggle:focus-visible {
  outline: 3px solid var(--accent-primary) !important;
  outline-offset: 3px !important;
}

#theme-toggle .fa {
  font-size: 16px !important;
  transition: transform 0.3s ease !important;
}

#theme-toggle:hover .fa {
  transform: rotate(15deg) !important;
}

/* Light Theme Overrides */
.theme-light {
  background: radial-gradient(#f0f0f0, #ffffff) !important;
}

.theme-light #container,
.theme-light #viewDiv {
  background: transparent !important;
}

.theme-light #searchInputRes {
  background-color: #f8f9fa !important;
  color: #333333 !important;
  border: 1px solid #dee2e6 !important;
}

.theme-light #searchInputRes a {
  color: #666666 !important;
}

.theme-light .search-container {
  background: rgba(248, 249, 250, 0.95) !important;
  color: #333333 !important;
}

.theme-light .autocomplete-dropdown {
  background: #ffffff !important;
  border: 1px solid #dee2e6 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.theme-light .autocomplete-item {
  color: #333333 !important;
}

.theme-light .autocomplete-item:hover,
.theme-light .autocomplete-item[aria-selected="true"] {
  background-color: #0066cc !important;
  color: #ffffff !important;
}

.theme-light .filter-sidebar {
  background: rgba(248, 249, 250, 0.95) !important;
  color: #333333 !important;
  border-right: 2px solid #0066cc !important;
}

.theme-light .filter-header {
  background: #0066cc !important;
  color: #ffffff !important;
}

.theme-light .filter-btn.primary {
  background: #0066cc !important;
  border-color: #0066cc !important;
}

.theme-light .filter-btn.primary:hover {
  background: #004499 !important;
  border-color: #004499 !important;
}

.theme-light .filter-btn.secondary {
  background: #6c757d !important;
  border-color: #6c757d !important;
}

.theme-light .filter-input,
.theme-light .filter-select {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #ced4da !important;
}

.theme-light .loading-overlay {
  background: rgba(248, 249, 250, 0.9) !important;
}

.theme-light .error-overlay {
  background: rgba(248, 249, 250, 0.95) !important;
  color: #333333 !important;
}

/* Smooth theme transition */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Respect user's motion preferences for theme transitions */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Theme toggle responsive design */
@media (max-width: 768px) {
  #theme-toggle {
    top: 10px !important;
    right: 10px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    min-width: 80px !important;
  }
  
  #theme-toggle .theme-text {
    display: none !important;
  }
}

/* ===== KEYBOARD SHORTCUTS HELP SYSTEM ===== */

/* Shortcuts Help Button */
#shortcuts-help {
  position: fixed !important;
  top: 20px !important;
  right: 130px !important;
  z-index: 9999 !important;
  background: var(--bg-secondary) !important;
  border: 2px solid var(--accent-primary) !important;
  color: var(--text-primary) !important;
  padding: 10px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  width: 45px !important;
  height: 45px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#shortcuts-help:hover {
  background: var(--accent-primary) !important;
  color: var(--bg-primary) !important;
  transform: translateY(-2px) scale(1.1) !important;
  box-shadow: 0 4px 15px var(--shadow-color) !important;
}

#shortcuts-help .fa {
  font-size: 18px !important;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.8) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000 !important;
  backdrop-filter: blur(5px) !important;
}

/* Modal Content */
.modal-content {
  background: var(--bg-primary) !important;
  border: 2px solid var(--accent-primary) !important;
  border-radius: 12px !important;
  max-width: 800px !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3) !important;
  animation: modalSlideIn 0.3s ease-out !important;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Header */
.modal-header {
  padding: 20px 25px !important;
  border-bottom: 1px solid var(--border-color) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)) !important;
  color: #000 !important;
}

.modal-header h2 {
  margin: 0 !important;
  font-size: 1.5em !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.modal-close {
  background: transparent !important;
  border: none !important;
  color: #000 !important;
  font-size: 24px !important;
  cursor: pointer !important;
  padding: 5px !important;
  border-radius: 4px !important;
  transition: background-color 0.3s ease !important;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1) !important;
}

/* Modal Body */
.modal-body {
  padding: 25px !important;
}

/* Shortcuts Grid */
.shortcuts-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 25px !important;
  margin-bottom: 25px !important;
}

.shortcut-category h3 {
  color: var(--accent-primary) !important;
  margin: 0 0 15px 0 !important;
  font-size: 1.1em !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding-bottom: 8px !important;
}

.shortcut-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.shortcut-item:last-child {
  border-bottom: none !important;
}

/* Keyboard Key Styling */
kbd {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  font-family: 'Courier New', monospace !important;
  font-size: 0.9em !important;
  color: var(--accent-primary) !important;
  box-shadow: 0 2px 0 rgba(0, 255, 255, 0.3) !important;
  margin: 0 2px !important;
  display: inline-block !important;
  min-width: 25px !important;
  text-align: center !important;
}

/* Shortcuts Footer */
.shortcuts-footer {
  background: var(--bg-secondary) !important;
  padding: 15px !important;
  border-radius: 8px !important;
  border-left: 4px solid var(--accent-primary) !important;
}

.shortcuts-footer p {
  margin: 0 !important;
  color: var(--text-secondary) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
  #shortcuts-help {
    right: 70px !important;
    top: 10px !important;
    width: 40px !important;
    height: 40px !important;
  }
  
  .modal-content {
    margin: 20px !important;
    max-height: calc(100vh - 40px) !important;
  }
  
  .shortcuts-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .modal-header,
  .modal-body {
    padding: 15px !important;
  }
  
  .shortcut-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
  }
}