body, html {
  margin: 0;
  padding: 0;
  font-family: Verdana, sans-serif;
}

.container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: #c9d6e3;
  color: #333;
  transition: width 0.3s;
  overflow-x: hidden;
}

.sidebar.collapsed {
  width: 60px;
}

.toggle-btn {
  padding: 10px;
  cursor: pointer;
  background-color: #a0b8cc;
  text-align: center;
}

.menu {
  padding: 10px;
}

.menu-item {
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.menu-item i {
  margin-right: 10px;
}

.sidebar.collapsed .menu-item span {
  display: none;
}

.submenu {
  display: none;
  padding-left: 0;
}

.submenu .menu-item {
  background-color: #ddeaf3;
}

.submenu.open {
  display: block;
}

/* Submenu header with close button */
.submenu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #a0b8cc;
  padding: 5px 10px;
  font-weight: bold;
}

.close-btn {
  background: red;
  border: none;
  color: white;
  font-size: 14px;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 3px;
}

.close-btn:hover {
  background: darkred;
}

.menu-item.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.main-content {
  flex: 1;
  background-color: #fff;
  padding: 0px;
  overflow-y: auto;
}

.ads-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 5px;
}

.ad-box {
  background-color: #f1f1f1;
  border: 1px solid #ddd;
  padding: 20px;
  text-align: center;
  font-weight: bold;
  min-height: 100px;
}

/* theme mode */

/* Dark mode overrides */
body.dark-mode {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.dark-mode .sidebar {
  background-color: #2c3e50;
  color: #f0f0f0;
}

body.dark-mode .menu-item {
  color: #f0f0f0;
}

body.dark-mode .submenu .menu-item {
  background-color: #34495e;
}

body.dark-mode .main-content {
  background-color: #1e1e1e;
}

body.dark-mode .ad-box {
  background-color: #2c3e50;
  color: #f0f0f0;
}
/*
    .wms-panel {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 1000;
      background: white;
      border-radius: 5px;
      box-shadow: 0 0 5px rgba(0,0,0,0.3);
      overflow: hidden;
      width: 290px;
      font-family: sans-serif;
    }
*/

	.wms-panel {
      position: absolute;
      top: 10px;
      right: 10px;
      background: white;
      border: 1px solid #00ccc;
      border-radius: 1px;
      padding: 1px;
      width: 260px;
      max-height: 400px;
      overflow-y: auto;
      z-index: 10000; /* make sure it’s above map */
      font-size: 14px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
      pointer-events: auto; /* allow clicks */
    }

    .wms-panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #1976d2;
      color: white;
      padding: 6px 10px;
      cursor: pointer;
    }
    .wms-panel-header button {
      background: transparent;
      border: none;
      color: white;
      font-size: 16px;
      cursor: pointer;
    }
    .wms-panel-body {
      padding: 10px;
      display: block;
      transition: max-height 0.3s ease;
    }
    .wms-panel-body.collapsed {
      display: none;
    }
    #wmsCapabilitiesUrl, #wmsLayerSelect {
      width: 100%;
      margin-top: 5px;
    }
    #fetchWMS, #addFromSelect, #resetWMS {
      margin-top: 5px;
      cursor: pointer;
    }
    .layer-toggle {
      margin-top: 5px;
      font-size: 14px;
    }
    .layer-control-btn {
      margin-left: 5px;
      cursor: pointer;
    }

.collapsible-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 280px;
  background: rgba(255,255,255,0.95);
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-family: Verdana, sans-serif;
  z-index: 1000;
}

.panel-header {
  background: #eee;
  padding: 6px 10px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-body {
  padding: 10px;
  display: block;
}

.collapsible-panel.collapsed .panel-body {
  display: none;
}

.toggle-btn {
  font-size: 14px;
  color: #555;
}

.layer-toggle {
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.layer-control-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

.layer-control-btn:hover {
  color: red;
}

 .contact-box { /* Know me style */
      position: fixed;
      bottom: 2px;
      right: 0px;
      background-color: rgba(0, 0, 0, 0.95); /* black with slight transparency */
      color: white;
      padding: 6px 11px;
      
      font-family: Verdana, sans-serif;
      font-size: 14px;
      box-shadow: 0 4px 11px rgba(0,0,0,0.5);
      z-index: 9999;
    }
    .contact-box a {
      color: #00aaff;
      text-decoration: none;
    }
    .contact-box a:hover {
      text-decoration: underline;
    }
 								/* Know me style ... */
/* Responsive adjustments for small screens */
@media screen and (max-width: 100px) {
  .contact-box {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
	font-family: Verdana, sans-serif;
    padding: 6px 11px;
    border-radius: 0;
  }
} /* Responsive adjustments for small screens .. */

 .site-visitor { /* Map Source style */
      position: fixed;
      bottom: 2px;
      left: 0px;
      background-color: rgba(0, 0, 0, 0.95); /* black with slight transparency */
      color: white;
      padding: 6px 11px;
      width: 225px;
      font-family: Verdana, sans-serif;
      font-size: 14px;
      box-shadow: 0 4px 11px rgba(0,0,0,0.5);
      z-index: 9999;
    }
    .site-visitor a {
      color: #00aaff;
      text-decoration: none;
    }
    .site-visitor a:hover {
      text-decoration: underline;
    } 								
	
	.visitor-counter-img {
		width: 100px; /* Or any size you prefer */
		height: auto; /* Maintain aspect ratio */
	}                                          /* Map Source style ... */
	





