:root{
    --main-color:#1F2937;
    --main-font:'Inter', sans-serif;
    --background_hex:#374151;
}


*{
    padding: 0;
    margin: 0;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.container_routes{
    display: flex;
    flex-direction: row;
    height: 100%;
}
.map_routes{
    /* background-color: red; */
    width: 100%;
    height: 100%;
}

#map {
    width: 100%;
    height: 100%; 
}

/* HEADER ************************/
.header_container{
    width: 100%;
    height:4rem;
    background-color:var(--main-color);
    display: flex;
    flex-direction: row;
}
.header_content{
    /* background-color: yellow; */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 14rem;
    margin-left: 1rem;
    gap: 1rem;
}

.logout{
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 2rem;
}
.logout button{
    background-color: #2563EB;
    color: white;
    height: 2.4rem;
    width: 8rem;
    border: none;
    font-family: var(--main-font);
    border-radius: 5px;
    cursor: pointer;
}
.header_img{
    width: 40px;
}

.header_content p{
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}


/* HEADER ************************/

/* FORM************************+ */

.form_container{
    width: 30rem;
    background-color: var(--main-color);
    min-height: 100vh; /* 🔁 usa toda la altura visible del navegador si es necesario */
    height: auto; 
    display: flex;
    flex-direction: column;
}
.options {
    background-color: var(--main-color);
    height: 4rem;
    display: grid;
    grid-template-columns: repeat(1,1fr);   
    padding: 0;
    margin: 0;
}

.option_view{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}
.option_view i{
    color: white;
    font-size: 1.2rem;
}
.option_view p{
    color: white;
    font-family: var(--main-font);
    font-weight: 300;
    margin-right: 1rem;
}

.option_view:hover{
    cursor: pointer;
}
.option_view.active {
    background-color: #374151;
}


.option_view.active i {
    color: #60A5FA;
}
.option_view.active p {
    color: #60A5FA;
}

/* VEHICLES_FILTER ********************/

.vehicles_response_container{
    display: none;
}

.vehicles_filter{
    /* background-color: red; */
    width: 100%;
    height: 5rem;
    font-family: var(--main-font);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.vehicles_filter_icon{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 1rem;
    gap: 0.7rem;
}
.vehicles_filter_icon p{
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
}

.vehicles_filter_icon i{
    color: #60A5FA;
    font-size: 2rem;
}

.vehicles_filter_button{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 1rem;
}
.vehicles_filter_button button{
    background-color:#374151;
    border: none;
    width: 10rem;
    height: 3rem;
    color: white;
    font-weight: 400;
    cursor: pointer;
    border-radius: 10px;
    font-size: 1rem;
}
/* VEHICLES_FILTER ********************/

/* INPUT FILTER ************************/

.input_filter{
    /* background-color: red; */
    width: 100%;
    height: 3.4rem;
    display: flex;
    justify-content: center;
}
.input_filter input{
    width: 27.7rem;
    height: 3rem;
    background-color: var(--background_hex);
    outline: none;
    border: none;
    border-radius: 7px;
    color: white;
    text-align: center;
    font-size: 1rem;
}

.input_filter input::placeholder {
    text-align: center;
    font-weight: 900;
    font-family: var(--main-font);
}
.filter_buttons{
    margin-left: 1rem;
}
.filter_buttons_options input[type="radio"] {
    display: none;
}

/* .filter_buttons_options span {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    border: 1px solid #007bff;
    border-radius: 6px;
    background-color: #fff;
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
} */

/* .filter_buttons_options span:hover {
    background-color: #007bff;
    color: #fff;
} */
.filter_buttons_options{
    margin-top: 1rem;
    /* background-color: red; */
    display: flex;
    flex-direction: row;
    gap: 1.3rem;
    color: white;
    font-family: var(--main-font);
    font-weight: 400;
}
.filter_buttons_all{
    background-color: var(--background_hex);
    padding: 8px 16px;
    display: flex;
    border-radius: 7px;
}

.filter_buttons_circle,.filter_buttons_circle_detenidos{
    background-color: var(--background_hex);
    padding: 8px 16px;
    border-radius: 7px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
}
.filter_buttons_circle p{
    background-color: #4ADE80;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.filter_buttons_circle_detenidos p{
    background-color: #F87171;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.filter_buttons_options input[type="radio"]:checked + span {
    background-color: #2563EB;
    color: #fff;
}

/* INPUT FILTER ************************/



/* CALENDAR*************************** */

.view_content form{
    /* background-color: yellow; */
    width: 100%;
    height: 12rem;
}

.calendar{
    /* background-color: red; */
    height: 10rem;
    padding: 1rem;
}

.calendar_form{
    background-color: var(--background_hex);
    height: 100%;
     display: flex; 
    flex-direction:column;
    border-radius: 6px;
}
.calendar_form_header{
    color: white;
    font-family: var(--main-font);
    display: flex;
    flex-direction: row;
    padding: 1rem;
    gap: 0.6rem;
}
.calendar_form_inputs{
    padding: 1rem;
    display: flex;
    flex-direction: row;
    gap: 1.8rem;
}
.calendar_form_inputs_range{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calendar_form_inputs_range input{
    width: 11rem;
    height: 3rem;
    background-color: var(--main-color);
    border: none;
    color: white;
    border-radius: 5px;
    text-align: center;
    font-family: var(--main-font);
    font-size: 1rem;
}

.calendar_form_inputs_range label{
    color: #9CA3AF;
    font-family: var(--main-font);
    
}


.submit_button{
    /* background-color: blue; */
    display: flex;
    justify-content: end;
    margin-top: 1rem;
}

.submit_button button{
    width: 7rem;
    height: 2rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background-color: #2563EB;
    color: white;
    font-family: var(--main-font);
    font-size: 0.8rem;
}


.vehicles_information{
    margin-left: 1rem;
    margin-top: 3rem;
}
#vehicles_number{
    color: white;
    font-family: var(--main-font);
    font-size: 1rem;
}

.vehicles_information_content_container{
    margin-left: 1rem;
    margin-right: 1rem;
    margin-top: 1.6rem;
    /* background-color: blue; */
    height: 15rem;
    overflow-y: auto;
    scrollbar-width: thin;       
    scrollbar-color: #888 transparent; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;  
    user-select: none;
}

.vehicles_information_content.selected {
    border-color: #007bff;
    background-color: var(--background_hex);
}

 .vehicles_grid{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
} 
    

.vehicles_grid::-webkit-scrollbar {
    width: 8px;
}


.circle_vehicle_off{
    background-color: red;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}

.circle_vehicle_on{
    background-color: greenyellow;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}

.vehicles_information_content{
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    padding: 10px;
}

.vehicles_information_content_single{
    color: white;
    font-family: var(--main-font);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* background-color: yellow; */
    width: 17rem;
}

.imei_driver{
    font-size: 0.8rem;
    opacity: 0.5;
}

.status_grid_content_on{
    color: white;
    font-family: var(--main-font);
    background-color: #14532D;
    padding: 0.3rem;
    width: 5rem;
    border-radius: 5px;
}

.status_grid_content_off{
    color: white;
    width: 5rem;
    font-family: var(--main-font);
    background-color: #7F1D1D;
    padding: 0.3rem;
    border-radius: 5px;
}
/* FORM************************+ */

/* Loader */
.loader {
  width: 120px;
  height: 22px;
  border-radius: 20px;
  color: #60A5FA;
  border: 2px solid;
  position: relative;
}
.loader::before {
  content: "";
  position: absolute;
  margin: 2px;
  inset: 0 100% 0 0;
  border-radius: inherit;
  background: currentColor;
  animation: l6 2s infinite;
}
@keyframes l6 {
    100% {inset:0}
}


/*alerta exitosa*/

.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.succsess-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 400px;
  padding: 12px 16px;
  background: #055b1c;
  color: #ffffff;
  border-radius: 8px;
  gap: 12px;
  cursor: default;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.3s forwards;
}

/* Icono a la izquierda */
.succsess-alert .icon-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texto */
.succsess-alert .text-container {
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

.succsess-alert .text-container p {
  margin: 0;
}

.succsess-alert .text-container .title {
  font-weight: 600;
  font-family: var(--main-font);
}

.succsess-alert .text-container .description {
  font-size: 0.85rem;
  color: #b0b0b0;
  font-family: var(--main-font);
}

/* Botón cerrar */
.succsess-alert button {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.succsess-alert button:hover {
  background: rgba(255,255,255,0.1);
}

/* Animación de entrada */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Alerta de error */
.error-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 400px;
  padding: 12px 16px;
  background: #8b1c1c;
  color: white;
  border-radius: 8px;
  gap: 12px;
  cursor: default;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.3s forwards;
}

.error-alert .icon-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-alert .text-container {
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

.error-alert .text-container p {
  margin: 0;
  font-family: var(--main-font);
}

.error-alert .text-container .title {
  font-weight: 600;
}

.error-alert .text-container .description {
  font-size: 0.85rem;
  color: #f0b0b0;
  font-family: var(--main-font);
}

.error-alert button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.error-alert button:hover {
  background: rgba(255,255,255,0.2);
}


/*Alerta de fechas*/
.warning-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  max-width: 400px;
  padding: 12px 16px;
  background: #b36b00; 
  color: white;
  border-radius: 8px;
  gap: 12px;
  cursor: default;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.3s forwards;
}

.warning-alert .icon-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-alert .text-container {
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

.warning-alert .text-container p {
  margin: 0;
  font-family: var(--main-font);
}

.warning-alert .text-container .title {
  font-weight: 600;
}

.warning-alert .text-container .description {
  font-size: 0.85rem;
  font-family: var(--main-font);
  color: #ffe1a3;
}

.warning-alert button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.warning-alert button:hover {
  background: rgba(255,255,255,0.2);
}
