@import url(../Source/Widgets/widgets.css);
@import url(../Source/Widgets/lighter.css);

html {
  height: 100%;
}

body {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  padding: 0;
  background: #000;
}

.fullWindow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  padding: 0;
  font-family: sans-serif;
}

.loadingIndicator {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -33px;
  margin-left: -33px;
  width: 66px;
  height: 66px;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url(Images/ajax-loader.gif);
}

/* WMS Layer Control Panel Styles */
.wms-layer-control {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(30, 30, 30, 0.8);
  color: white;
  padding: 10px;
  border-radius: 5px;
  font-family: sans-serif;
  font-size: 14px;
  max-width: 200px;
  z-index: 1000;
}

.wms-layer-control h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: bold;
}

.wms-layer-control label {
  display: block;
  margin-bottom: 5px;
  cursor: pointer;
}

.wms-layer-control input[type="checkbox"] {
  margin-right: 6px;
}




/* Agrega esto al final de tu archivo CSS */

/* Layer Control Styles */
.layer-control {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(42, 42, 42, 0.9);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: sans-serif;
    font-size: 14px;
    /*max-width: 250px;*/
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.layer-control h3 {
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #555;
    cursor: pointer;
    user-select: none;
}

.layer-control h3:hover {
    color: #4caf50;
}

.layer-category {
    margin-bottom: 10px;
}

.layer-item {
    margin-left: 15px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.layer-item label {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.layer-item input[type="checkbox"] {
    margin-right: 8px;
}

.layer-opacity {
    width: 100%;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.layer-opacity input[type="range"] {
    flex-grow: 1;
    margin-right: 8px;
}

.layer-opacity span {
    width: 30px;
    text-align: right;
    font-size: 12px;
}

.hidden {
    display: none;
}


/* Estilos para el InfoBox personalizado */
.custom-info-box {
    font-family: sans-serif;
    padding: 10px;
    color: #333;
}

.custom-info-box h3 {
    margin-top: 0;
    color: #2a6496;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.custom-info-box table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.custom-info-box th, 
.custom-info-box td {
    padding: 5px;
    border: 1px solid #ddd;
    text-align: left;
}

.custom-info-box th {
    background-color: #f5f5f5;
    width: 30%;
}

.custom-info-box .feature-info {
    max-height: 300px;
    overflow-y: auto;
}




/* Estilos para el reordenamiento de capas */
.layer-item {
    cursor: move;
    padding: 5px;
    margin: 5px 0;
    background: rgba(60, 60, 60, 0.7);
    border-radius: 3px;
    transition: background 0.2s;
}

.layer-item.dragging {
    opacity: 0.5;
    background: rgba(100, 100, 100, 0.7);
}

.drag-handle {
    margin: 0 8px;
    color: #aaa;
    cursor: grab;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.drop-indicator {
    height: 2px;
    background: #4caf50;
    margin: 2px 0;
}

.layer-category-content {
    max-height: 400px;
    overflow-y: auto;
}

.layer-content {
    padding: 5px;
}

/* Añade esto para el InfoBox personalizado */
/* InfoBox Personalizado - Lado Derecho */
.custom-info-box {
  font-family: sans-serif;
  transition: all 0.3s ease;
}

.custom-info-box h3 {
  margin-top: 0;
  color: #4da6ff;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 10px;
}

.zoni-info {
  margin-top: 10px;
}

.zoni-info p {
  margin: 8px 0;
  line-height: 1.5;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
}

.close-btn:hover {
  color: #ff6b6b;
}

/* Scrollbar */
.custom-info-box::-webkit-scrollbar {
  width: 6px;
}

.custom-info-box::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}



.cesium-legend {
  position: absolute;
  right: 20px;
  bottom: 20px;
  min-width: 180px;
  /*max-width: 300px;*/
  background: rgba(38,38,38,0.92);
  color: #fff;
  border-radius: 6px;
  padding: 12px 16px 12px 16px;
  font-size: 13px;
  z-index: 9999;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  /*pointer-events: none;*/
}
.cesium-legend h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: #4da6ff;
}
.cesium-legend ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cesium-legend li {
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  font-size: 12px;
}
.cesium-legend .legend-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  display: inline-block;
}
.cesium-legend .legend-color {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  margin-right: 8px;
  border: 1px solid #aaa;
  display: inline-block;
}
#layer-control {
  position: absolute;
  top: 20px;
  left: 50px;
  z-index: 2000;
  /* ...otros estilos... */
}
#cesiumLegend {
  pointer-events: auto;
  
}
/*#legendContent {
  display: flex !important;
  flex-direction: row;
  gap: 18px;
  min-width: 340px;
  max-width: 900px;
}
#legendContent > div {
  min-width: 160px;
  max-width: 400px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}
#legendContent ul {
  flex: 1 1 0;
}
#legendContent li {
  min-height: 24px;
}*/

/* Personaliza el selection indicator de Cesium */

.cesium-selection-indicator-svg circle {
  stroke: #ff6b6b !important;
  stroke-width: 4px !important;
  fill: rgba(255,255,255,0.15) !important;
}