/* html .full-body {
  width: 100%;
  height: 100%;
   background: radial-gradient(
    farthest-side at 150px 150px,
    #efefe6 5% 30%,
    #2d370f 80%,
    #000000 145%
  ); 
  position: relative;
} */
/* d4d4b3 #273016  */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ===============================
   SITE HEADER
   =============================== */
.site-header {
  position: fixed;
  top: 0;
  left: 48px;
  right: 0;
  height: 60px;
  background: #1a1a1a;
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  padding-left: 30px;
  z-index: 1001;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.3),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.05);
}

.site-title {
  font-size: 24px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.5px;
  margin: 0;
}

/* ===============================
   LEFT SIDE NAVIGATION BAR
   =============================== */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 100vh;
  background: #2a2a2a;
  border-right: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  z-index: 1002;
  box-shadow: 
    2px 0 6px rgba(0, 0, 0, 0.3),
    inset -1px 0 0 0 rgba(255, 255, 255, 0.05);
}

/* Add subtle grid pattern to match body */
.side-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  opacity: 0.5;
}

/* Wrapper for nav item + tooltip */
.side-nav .nav-item-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.side-nav .nav-item {
  width: 36px;
  height: 36px;
  background: #333333;
  border-radius: 0;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible !important;
  
  /* Angular corner like dashboard sections */
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    0 100%
  );
}

/* Decorative corner element */
.side-nav .nav-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.side-nav .nav-item i {
  font-size: 18px;
  color: #cbd5e1;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.side-nav .nav-item:hover {
  background: #3b3b3b;
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateX(2px);
}

.side-nav .nav-item:hover::after {
  opacity: 1;
}

.side-nav .nav-item:hover i {
  color: #3b82f6;
}

/* Sidebar tooltips - using real span element */
.side-nav .nav-tooltip {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: #2a2a2a;
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.1s ease, visibility 0.1s ease;
  z-index: 99999 !important;
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.side-nav .nav-item-wrapper:hover .nav-tooltip {
  opacity: 1;
  visibility: visible;
}





/* Style for Country Search */
.wrapper {
  position: absolute;
  width: 330px;
  margin-left: 105px;
  margin-top: 70px;
  z-index: 500;
}

.select-btn, .options li {
  display: flex;
  cursor: pointer;
  align-items: center;
}

.select-btn {
  height: 50px;
  font-size: 16px;
  padding: 0 15px;
  background: #333333;
  color: #cbd5e1;
  justify-content: space-between;
  border-radius: 0;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  
  /* Angular corner */
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    0 100%
  );
}

.select-btn::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
}

.select-btn:hover {
  background: #3b3b3b;
  border-color: rgba(59, 130, 246, 0.6);
}

.select-btn i {
  font-size: 31px;
  color: #3b82f6;
  transition: transform 0.3s linear;
}

.wrapper.active .select-btn i {
  transform: rotate(-180deg);
}

.content {
  display: none;
  padding: 13px;
  margin-top: 15px;
  background: #2a2a2a;
  border-radius: 0;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.wrapper.active .content {
  display: block;
}

.content .search {
  position: relative;
}

.search i {
  left: 15px;
  color: #64748b;
  font-size: 15px;
  line-height: 40px;
  position: absolute;
}

.search input {
  height: 40px;
  width: 100%;
  outline: none;
  font-size: 15px;
  border-radius: 4px;
  padding: 0 10px 0 43px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: #333333;
  color: #e2e8f0;
  transition: all 0.3s ease;
}

.search input:focus {
  border-color: #3b82f6;
  background: #3b3b3b;
}

.search input::placeholder {
  color: #64748b;
}

.content .options {
  margin-top: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 15px;
}

.options::-webkit-scrollbar {
  width: 7px;
}

.options::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.options::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 4px;
}

.options::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

.options li {
  height: 40px;
  padding: 0 10px;
  font-size: 15px;
  border-radius: 4px;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.options li:hover, li.selected {
  background: #3b3b3b;
  color: #3b82f6;
}
/* End Style for Country Search */


/* Map Style */
#map { 
  position: absolute;
  top: 60px;
  bottom: 0;
  right: 0;
  left: 48px !important;
  z-index: 450;
}

/* Fixed Info Panel */
.info-panel {
  position: fixed;
  left: 68px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  max-height: 500px;
  background: #2a2a2a;
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 0;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.5),
    0 10px 10px -5px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  z-index: 10000;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  clip-path: polygon(
    0 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% 100%,
    0 100%
  );
}

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

.info-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 1;
  transition: color 0.2s ease;
}

.info-panel-close:hover {
  color: #3b82f6;
}

.info-panel-placeholder {
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  padding: 40px 20px;
}

/* Info panel content styling */
.info-panel .popupTitle {
  font-size: 20px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
  text-align: center;
}

.info-panel .popupTotal {
  font-size: 16px;
  font-weight: 500;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 12px;
}

.info-panel .popupBranchRow {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 4px 0;
}

.info-panel .popupBranchTitle {
  font-size: 15px;
  color: #cbd5e1;
}

.info-panel .popupBranchTotal {
  font-size: 15px;
  font-weight: 500;
  color: #e2e8f0;
}

#HomeButton {
  background: #333333;
  border-radius: 0;
  position: absolute;
  top: 145px;
  left: 58px;
  z-index: 500;
  width: 34px;
  height: 34px;
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    0 100%
  );
}

#HomeButton::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#HomeButton:hover {
  background: #3b3b3b;
  border-color: rgba(59, 130, 246, 0.6);
} 

#HomeButton:hover::after {
  opacity: 1;
}

#HomeIcon {
  font-size: 16px;
  color: #cbd5e1;
  z-index: 401;
  transition: color 0.3s ease;
}

#HomeButton:hover #HomeIcon {
  color: #3b82f6;
}

#PageNavigationButton {
  background: #333333;
  border-radius: 0;
  z-index: 500;
  width: 35px;
  height: 35px;
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    0 100%
  );
}

#PageNavigationButton::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#PageNavigationButton:hover {
  background: #3b3b3b;
  border-color: rgba(59, 130, 246, 0.6);
}

#PageNavigationButton:hover::after {
  opacity: 1;
} 

/* Custom tooltip for Page Navigation Button - Overseas page */
#OverseasPageNavLink {
  position: absolute;
  top: 190px;
  left: 58px;
  z-index: 10000;
}

#OverseasPageNavLink::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
  background: #2a2a2a;
  color: #e2e8f0;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 10000;
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#OverseasPageNavLink:hover::before {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* Custom tooltip for Page Navigation Button - US page */
#USPageNavLink {
  position: absolute;
  top: 190px;
  left: 58px;
  z-index: 10000;
}

#USPageNavLink::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
  background: #2a2a2a;
  color: #e2e8f0;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 10000;
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#USPageNavLink:hover::before {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

#USIcon {
  width: 29px;
  height: 29px;
  margin-left: 0.5px;
  margin-top: 1px;
}

#GlobeIcon {
  width: 25px;
  height: 25px;
  margin-left: 0.5px;
  margin-top: 3px;
}

/* Leaflet Popup Container Styling */
.leaflet-pane.leaflet-popup-pane {
  isolation: isolate !important;
  z-index: 99999 !important;
}

.leaflet-popup-pane {
  position: fixed !important;
  z-index: 99999 !important;
}


.leaflet-popup-content-wrapper {
  background: #2a2a2a !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(59, 130, 246, 0.5) !important;
  border-radius: 0 !important;
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.5),
    0 4px 6px -2px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05) !important;
  z-index: 99999 !important;
}

.leaflet-popup-tip {
  background: #2a2a2a !important;
  border: 1px solid rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-popup-content {
  margin: 10px 15px !important;
  color: #e2e8f0 !important;
  min-width: 220px !important;
}

.leaflet-popup-close-button {
  color: #cbd5e1 !important;
  font-size: 20px !important;
  padding: 2px 6px 0 0 !important;
}

.leaflet-popup-close-button:hover {
  color: #3b82f6 !important;
}

.popupTitle {
  text-align: center;
  text-decoration: underline;
  text-decoration-color: #3b82f6;
  font-size: 17px;
  font-weight: bold;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.popupTotal {
  text-align: center;
  font-weight: bold; 
  font-size: 14px;
  color: #3b82f6;
  margin-bottom: 8px;
}

/* Branch row container - keeps name and total on same line */
.popupBranchRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
  width: 100%;
}

.popupBranchTitle {
  text-align: left;
  font-size: 11px;
  color: #cbd5e1;
  white-space: nowrap;
  flex-shrink: 1;
}

.popupBranchTotal {
  text-align: right;
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 15px;
  flex-shrink: 0;
}

/* Leaflet Zoom Controls */
.leaflet-top.leaflet-left {
  z-index: 500 !important;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2) !important;
  z-index: 500 !important;
}

.leaflet-control-zoom a {
  background: #333333 !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 0 !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 18px !important;
  font-weight: bold !important;
  transition: all 0.3s ease !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05) !important;
}

.leaflet-control-zoom a:hover {
  background: #3b3b3b !important;
  color: #3b82f6 !important;
  border-color: rgba(59, 130, 246, 0.6) !important;
}

.leaflet-control-zoom a:first-child {
  border-bottom: none !important;
}

.leaflet-control-zoom-in {
  /* Angular corner clip for top button */
  clip-path: polygon(
    0 0,
    calc(100% - 6px) 0,
    100% 6px,
    100% 100%,
    0 100%
  ) !important;
}

.leaflet-control-zoom-out {
  /* No clip for bottom button */
  clip-path: none !important;
}

/* Decorative corner for zoom in button */
.leaflet-control-zoom-in::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.leaflet-control-zoom-in:hover::after {
  opacity: 1;
}

/* End Map Style */




/* Totals Style */
.totals_container {
  position: fixed;
  z-index: 475;
  width: 100%;
  height: 75px;
  margin-top: 70px;
  border-radius: 4px;
  pointer-events: none; /* Allow clicks to pass through container */
}

.active_container {
  display: flex;
  content: space-between;
  border-radius: 0;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-left: 590px;
  width: calc(100% - 590px - 20px);
  max-width: 60%;
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: blur(10px);
  pointer-events: auto; /* Re-enable clicks on content */
}

#active-total {
  text-align: center;
  background: #333333;
  color: #e2e8f0;
  border-radius: 0;
  width: 25%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 3px;
  font-size: 14px;
  padding-top: 3px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

#active-army-total {
  display: flex;
  text-align: center;
  justify-content: center;
  background: #333333;
  color: #cbd5e1;
  border-radius: 0;
  width: 15%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

#active-navy-total {
  text-align: center;
  background: #333333;
  color: #cbd5e1;
  border-radius: 0;
  width: 15%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

#active-marine-total {
  text-align: center;
  background: #333333;
  color: #cbd5e1;
  border-radius: 0;
  width: 15%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

#active-airspace-total {
  text-align: center;
  background: #333333;
  color: #cbd5e1;
  border-radius: 0;
  width: 15%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

#active-coastguard-total {
  text-align: center;
  background: #333333;
  color: #cbd5e1;
  border-radius: 0;
  width: 15%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}


.reserve_container {
  display: flex;
  content: space-between;
  border-radius: 0;
  margin-top: 4px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  padding: 1px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-left: 590px;
  width: calc(100% - 590px - 20px);
  max-width: 60%;
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: blur(10px);
  pointer-events: auto; /* Re-enable clicks on content */
}

#reserve-total {
  background: #333333;
  color: #e2e8f0;
  text-align: center;
  border-radius: 0;
  width: 25%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 3px;
  font-size: 14px;
  padding-top: 3px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

#reserve-army-total {
  text-align: center;
  background: #333333;
  color: #cbd5e1;
  border-radius: 0;
  width: 15%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

#reserve-navy-total {
  text-align: center;
  background: #333333;
  color: #cbd5e1;
  border-radius: 0;
  width: 15%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

#reserve-marine-total {
  text-align: center;
  background: #333333;
  color: #cbd5e1;
  border-radius: 0;
  width: 15%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

#reserve-airspace-total {
  text-align: center;
  background: #333333;
  color: #cbd5e1;
  border-radius: 0;
  width: 15%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

#reserve-coastguard-total {
  text-align: center;
  background: #333333;
  color: #cbd5e1;
  border-radius: 0;
  width: 15%;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.date-container {
  z-index: 500;
  position: fixed;
  
  width: 135px;
  margin-left: 445px;
  margin-top: 70px;

  text-align: center;
  padding-right: 3px;

  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0;
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

#date-text {
  font-style: italic;
  font-size: 16px;
  color: #e2e8f0;
}



/* Info icon next to the date */
.info-tooltip {
  z-index: 500;
  position: fixed;
  
  width: 43px;
  margin-left: 485px;
  margin-top: 105px;

  text-align: center;
  padding-right: 3px;

  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 0;
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.info-tooltip:hover {
  border-color: rgba(59, 130, 246, 0.6);
}

.info-tooltip i {
  color: #3b82f6;
}

/* Tooltip bubble positioned BELOW */
.info-tooltip .tooltip-text {
  visibility: hidden;
  opacity: 0;

  position: absolute;
  top: 22px;              /* pushes it downward */
  left: -5px;

  background: #2a2a2a;
  color: #e2e8f0;
  width: 260px;
  padding: 10px;
  border-radius: 4px;
  z-index: 9999;
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.5),
    0 4px 6px -2px rgba(0, 0, 0, 0.3);

  font-size: 13px;
  line-height: 1.4;

  transition: opacity 0.2s ease;
}

/* Show on hover */
.info-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* End Totals Style */


/* =====================================================================
   RESPONSIVE TOTALS CONTAINERS
   ===================================================================== */

/* Large screens - adjust margin */
@media (max-width: 1400px) {
  /* Move totals down to just below dropdown */
  .totals_container {
    margin-top: 140px; /* Just below the dropdown */
    pointer-events: none; /* Make container transparent to clicks */
  }
  
  .active_container,
  .reserve_container {
    margin-left: 105px; /* Align with dropdown left edge */
    width: calc(100% - 125px); /* Full width with margins */
    max-width: none;
    pointer-events: auto; /* Re-enable clicks on actual content */
  }
  
  #active-total,
  #reserve-total {
    font-size: 13px;
  }
  
  #active-army-total,
  #active-navy-total,
  #active-marine-total,
  #active-airspace-total,
  #active-coastguard-total,
  #reserve-army-total,
  #reserve-navy-total,
  #reserve-marine-total,
  #reserve-airspace-total,
  #reserve-coastguard-total {
    font-size: 12px;
  }
}

/* Adjust panel position when totals move down */
@media (max-width: 1400px) {
  .info-panel {
    top: calc(50% + 20px); /* Shift down enough to clear totals */
  }
}

/* Medium screens - reduce margin more */
@media (max-width: 1200px) {
  #active-total,
  #reserve-total {
    font-size: 12px;
  }
  
  #active-army-total,
  #active-navy-total,
  #active-marine-total,
  #active-airspace-total,
  #active-coastguard-total,
  #reserve-army-total,
  #reserve-navy-total,
  #reserve-marine-total,
  #reserve-airspace-total,
  #reserve-coastguard-total {
    font-size: 11px;
  }
}

/* Smaller screens - adjust dropdown */
@media (max-width: 1000px) {
  /* Keep dropdown in original position, just reduce font sizes for totals */
  #active-total,
  #reserve-total {
    font-size: 11px;
  }
  
  #active-army-total,
  #active-navy-total,
  #active-marine-total,
  #active-airspace-total,
  #active-coastguard-total,
  #reserve-army-total,
  #reserve-navy-total,
  #reserve-marine-total,
  #reserve-airspace-total,
  #reserve-coastguard-total {
    font-size: 10px;
  }
}

/* When totals would overlap dropdown - already handled above at 1400px */
@media (max-width: 900px) {
  .wrapper {
    width: 240px;
  }
}

/* Tablet and smaller - minimal margin */
@media (max-width: 850px) {
  .active_container,
  .reserve_container {
    margin-left: 280px;
    width: calc(100% - 280px - 20px);
    max-width: 80%;
  }
  
  #active-total,
  #reserve-total {
    font-size: 11px;
    width: 22%;
  }
  
  #active-army-total,
  #active-navy-total,
  #active-marine-total,
  #active-airspace-total,
  #active-coastguard-total,
  #reserve-army-total,
  #reserve-navy-total,
  #reserve-marine-total,
  #reserve-airspace-total,
  #reserve-coastguard-total {
    font-size: 10px;
    width: 15.6%;
    padding-top: 3px;
    padding-bottom: 3px;
  }
  
  /* Adjust date and info tooltip only */
  .date-container {
    margin-left: 180px;
    width: 100px;
    font-size: 14px;
  }
  
  .info-tooltip {
    margin-left: 215px;
    margin-top: 40px;
    width: 38px;
  }
}

/* Very small screens - hide completely */
@media (max-width: 700px) {
  .totals_container {
    display: none;
  }
  
  .date-container,
  .info-tooltip {
    display: none;
  }
  
  /* Keep essential left-side elements visible */
  .wrapper {
    width: calc(100% - 120px);
    margin-left: 60px;
    max-width: 300px;
  }
  
  #HomeButton {
    top: 70px;
    left: 58px;
    width: 32px;
    height: 32px;
  }
  
  #PageNavigationButton {
    top: 110px;
    left: 58px;
    width: 32px;
    height: 32px;
  }
  
  #HomeIcon {
    font-size: 14px;
  }
  
  #USIcon,
  #GlobeIcon {
    width: 24px;
    height: 24px;
  }
}

/* Extra small screens - further adjustments */
@media (max-width: 500px) {
  .wrapper {
    width: calc(100% - 80px);
    margin-left: 60px;
  }
  
  .select-btn {
    font-size: 14px;
    padding: 0 10px;
    height: 45px;
  }
  
  .select-btn i {
    font-size: 24px;
  }
  
  .content {
    padding: 10px;
  }
  
  .search input {
    font-size: 14px;
  }
  
  .options li {
    font-size: 14px;
    height: 36px;
  }
}

/* Hidden by default */
#mobile-warning {
  display: none;
}

/* Enable on screens under 768px (mobile/tablet) */
@media (max-width: 768px) {
  #mobile-warning {
    display: flex;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  .mobile-warning-box {
    background: white;
    color: black;
    padding: 25px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 16px;
    line-height: 1.4;
  }

  /* Prevent user from interacting with anything underneath */
  body {
    overflow: hidden;
  }
}