body {
    font-family: Arial, sans-serif;
    background-color: #13202b;
    color: #e2dddd;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    background-color: #0056B3;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer {
	position: flex;
	bottom: 0;
	width: 100%;
	background-color: #333;
	color: white;
	text-align: center;
	padding: 10px 0;
	}

h3 {
    margin: 0;
    color: white;
    text-align: center;
    flex-grow: 1;
}

/* Estilo para los botones de la cabecera */
.header-button {
    padding: 10px 0px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    color: white;
    text-align: center;
    transition: background-color 0.3s;
}
#iniciar-recorrido {
    background-color: #28a745; /* Verde */
}
#terminar-recorrido {
    background-color: #dc3545; /* Rojo */
}

.eliminar-button{
    font-size: 12px;
    color: white;
	height: 50px;
    background-color: #A30708;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 5px;
}

.button-eliminar{
    font-size: 12px;
    color: white;
	height: 50px;
    background-color: #A30708;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 5px;
}

.button-eliminar:hover{
    background-color: #d13333;
    transition: background-color 0.3s;
}



/* Estilo para los botones de dos estados */
.two-state-button {
    display: inline-flex;
    border: 2px solid #007bff;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px;
}
.two-state-button div {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #C7D9ED;
    color: gray;
    transition: background-color 0.3s;
    font-size: 16px;
    width: 100px;
    text-align: center;
}
.two-state-button div.active {
    background-color: #0056b3;
    color: white;
}

/* Contenedor y botones de la parte inferior */
#ubicacion-container {
    margin-top: 15px;
    flex: 1;
    padding: 10px;
    width: 80%;
	height: 100%;
    max-width: 1000px;
}
#ubicacion {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 20px;
}
.button-container {
    position: flex;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px;
    height: 100px;
	padding-bottom: 15px;
    gap: 10px; /* Ajusta el espacio entre botones */
    margin-top: 10px;
}
button {
    padding: 10px 20px;
    font-size: 18px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 0 5px;
}
button:hover {
    background-color: #0056b3;
}

.button-red{
    background-color:#a70f0f;
}
.button-red:hover{
    background-color:#ce1e1e;
}
.button-green   {
    background-color:#008000;
}

.button-green:hover   {
    background-color:#0cb80c;
}


.cargando {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro con transparencia */
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Asegura que esté sobre otros elementos */
}

.cargando-text {
	  color: white;
	font-size: 18px;

}


/* Estilo general de la pantalla de carga */
.login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Fondo oscuro con transparencia */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Asegura que esté sobre otros elementos */
}

/* Contenedor de la interfaz de login */
.login-container {
    text-align: center;
    background: #333;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    color: white;
}

/* Texto para el campo de nombre de usuario */
.login-text {
    margin-bottom: 15px;
}

/* Estilo del campo de texto */
input[type="text"] {
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.button-iniciar
{
    
    margin-top: 5px;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    }


.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

  #map { 
  height: 100%; 
  width: 100%; 
        }
.cargando {
    display: none;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body, html {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Clases para el ancho de las columnas */
.col-0 { width: 0%; }
.col-10 { width: 10%; }
.col-20 { width: 20%; }
.col-30 { width: 30%; }
.col-40 { width: 40%; }
.col-50 { width: 50%; }
.col-60 { width: 60%; }
.col-80 { width: 80%; }
.col-90 { width: 90%; }
.col-100 { width: 100%; }

/* Clases para la altura de las filas dentro de cada columna */
.row-10 { height: 10%; }
.row-15 { height: 15%; }
.row-25 { height: 25%; }
.row-40 { height: 40%; }
.row-50 { height: 50%; }
.row-60 { height: 60%; }
.row-75 { height: 75%; }
.row-80 { height: 80%; }
.row-100 { height: 100%; }

.margin-top15{
    margin-top: 15px !important;
}

.height-100 { height: 100%; }
/* Estilos básicos para visualizar las celdas */
.col {
    display: flex;
    flex-direction: column;
    border: 0px solid #000;
    height:  100%;
}

.cell {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0px solid #ccc;
    font-size: 1rem;
    font-weight: bold;
}

.center-items{
    align-items: center;
    text-align: center;

}
.sub-col {
    display: flex;
}

#file-input, #file-input-convertir-geoJson {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Texto dentro del botón */
.button-input span {
    display: inline-block;
    z-index: -100;
    pointer-events: none;
}

.button-input {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.button-input:hover {
    background-color: #218838;
}

#map-container {
    margin-top: 15px;
    flex: 1;
    padding: 10px;
    width: 80%;
	height: 100%;
    max-width: 100hv;
}

.button-blue{
    background-color: #405e7e;
    width: 80%;
    text-align: center;
    padding: 5%;
    font-size: 10px;
    margin-top: 15px;
    height: 80%;
}

.info-panel {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: black; 
    padding: 10px; 
    border-radius: 5px; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

.info-panel p {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.color-box {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 10px;
}

#led-count, #lamp-count, #funciona-count, #nofunciona-count {
    font-weight: bold;
}

hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 10px 0;
}
