@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
html, body {
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

/* Fuente y fondo general */
body {
 font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #f6f9fc, #e9eff5);
  margin: 0;
  padding: 5rem 2rem;
}

/* Contenedor centrado */
.container {
  max-width: 800px;
  margin: 0 auto;
}

/* Tarjeta de login elegante */
.login-card {
  float:right;
  position: relative;
  background-color: #ffffff; 
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 60%;
  overflow: hidden;
  opacity: 0.8;   
}

.login-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-50%, -50%);
  width: 300px;           /* Ajusta este valor para hacer el logo más grande o más chico */
  height: 300px;
 /* background-image: url('imagenes/logo_vet.png');  Reemplaza con la ruta a tu logo */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.1;           /* Ajusta la opacidad para que el fondo no interfiera con el contenido */
  z-index: 0;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

/* Logo */
.logo-img {
  max-width: 100px;
  height: auto;
}

/* Encabezado del login */
.login-header h1 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.login-header p {
  font-size: 1rem;
  color: #6c757d;
}
/* Inputs con fondo transparente y bordes personalizados */
.input-transparent {
  background-color: transparent !important;
  border: 1px solid rgba(44, 62, 80, 0.5);
  color: #2c3e50;
  padding: 10px;
  border-radius: 8px;
}

.input-transparent::placeholder {
  color: rgba(44, 62, 80, 0.6);
}

/* Cambios de estilo al enfocar el input */
.input-transparent:focus {
  border-color: #286FBF;
  outline: none;
  box-shadow: 0 0 5px rgba(40, 111, 191, 0.5);
}
/* Botón primario personalizado */
.btn-primary {
  background-color: #286FBF;
  border: none;
}

.btn-primary:hover {
  background-color: #1e5a99;
}

/* Reducir espacio entre inputs */
.mb-2 {
  margin-bottom: 0.75rem !important;
}

.boton-eventos {
    font-size: 13px; 
    background-color: #69d65d !important; 
    border-color: #ff5733 !important; 
    color: white !important; 
}

/* ////------ MENU DE NAVEGACION   */

.navbar {
 border-radius: 10px;
  padding: 10px 20px;
/*  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); */

  }
.navbar-brand {
  font-size: 1.4rem;
  color: #fff;
  font-weight: bold;
}
.navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}
.navbar-nav .nav-link:hover {
  color: #f8f9fa;
}
.dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.dropdown-item:hover {
  background-color: #007bff;
  color: #fff;
}

#pacientesDropdown{
  color:#393939;
}
#usuariosDropdown{
  color:#393939;
}

.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; 
}


.dropdown-menu {
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    opacity: 0;
    visibility: hidden;
    display: block; /* Para mantener la estructura */
    position: absolute;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

/* Ajuste para que los submenús se abran hacia la derecha */
.dropdown-menu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
}

/* Opcional: mostrar el submenú al pasar el mouse sin hacer clic */
.dropdown-menu li:hover > .dropdown-menu {
  display: block;
  position: absolute;
}

.footer {
    font-family: 'Montserrat', sans-serif;
  /*  background: linear-gradient(to right, #7ed281, #25e42d); */
    color: #063989;
    text-align: center;
    padding: 3px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    font-size:7pt;
}
.footerIndex {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(to right, #7ed281, #25e42d); 
    color: black;
    text-align: center;
    padding: 3px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    font-size:10pt;
    opacity: 0.7;
}

.table {
    font-size: 14px; 
     width: 80%; 
    margin: auto;
}

.table th, 
.table td {
    padding: 5px; /* Reduce el espaciado dentro de las celdas */
}
.datosPaciente{
float: left;
width: 90%;
margin-top: 10px;
margin-left: 5%;
height: auto;
border-radius:5px;
    }

#antecedentes{
 width: 90%;
 float: left;
 height: auto;
 margin-left: 5%;
 border-radius:5px;
 margin-top: 10px;
}

.porsistemas{
 width: 90%;
 float: left;
 height: auto;
 margin-left: 5%;
 border-radius:5px;
 margin-top: 10px;
}
#diagnostico{
 width: 90%;
 float: left;
 height: auto;
 margin-left: 5%;
 border-radius:5px;
 margin-top: 10px;
}

#mostrarTblDiag{
    width: 100%;
    float: left;
    margin-top: 2%;
    height: auto;
    padding-bottom: 1%;
}
#laboratorios{
 width: 90%;
 float: left;
 border:1px solid #20A0EE;
 height: 230px;
 margin-left: 5%;
 border-radius:5px;
 margin-top: 10px;
}

    .calendar-container {
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    background: #fff;
  }
    table {
      width: 100%;
      border-collapse: collapse;
      text-align: center;
    }
    th {
      color: #495057;
      font-weight: bold;
    }
    td {
      padding: 10px;
      cursor: pointer;
      border-radius: 6px;
      transition: background 0.3s;
    }
    td:hover:not(.text-muted):not(.selected) {
      background-color: #e9ecef;
    }
    .selected {
      background-color: #0d6efd;
      color: white;
    }
    .text-muted {
      color: #ced4da;
      cursor: not-allowed;
    }

.month-nav-btn {
  width: 20%;
  padding: 4px;
  margin-top: 10px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  font-size: 20px;
}

    button {
      background-color: #198754;
      color: white;
      cursor: pointer;
      border: none;
    }

    button:hover {
      background-color: #157347;
    }
  
  .month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 10px;
}

.month-nav button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  width: 20px; 
  height: 30px; 
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center; 
}

.month-nav button:hover {
 background-color: rgba(13, 110, 253, 0.1);
} 

#monthYear {
  font-size: 1.3rem;
  text-align: center;
  width: auto;      /* Limita el ancho máximo */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}
  
@media (max-width: 576px) {
    #monthYear {
    font-size: 1rem;
    max-width: 100px; /* Ajustamos el tamaño máximo en pantallas pequeñas */
  }

    .table th, .table td {
      font-size: 0.75rem;
      padding: 0.3rem;
    }

    button[type="submit"] {
      font-size: 0.9rem;
    }
  }

  #calendarBody td.selected {
  background-color: #007bff;   /* Azul Bootstrap */
  color: white;
  font-weight: bold;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

/* Opcional: cambia el cursor cuando se puede seleccionar */
#calendarBody td:not(.text-muted):hover {
  cursor: pointer;
  background-color: #e0f0ff;
  border-radius: 50%;
}
.contenidoPacte{
    width: 100%;
    float: left;
    height: 400px;
    margin-top:1%;
  
}

.container-pacientes{
 width: 90%;
  max-width: 1200px;
  height: 70vh; /* Ocupa el 90% del alto de la ventana */
  margin: 5vh auto; /* Centrado vertical con margen superior e inferior */
  padding: 20px;
  box-sizing: border-box;
  border: 2px solid gray;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto; 
}
@media (max-width: 600px) {
  .container-pacientes {
    padding: 10px;
  }
}

#listadoPacte{
    width: 100%;
    float: left;
    margin-bottom: 30px;
    border-radius: 10px;
    height: auto;
    overflow: scroll;
}
#rengofechas{
    padding: 10px; 
    position: relative;
    z-index: 1;
}

#ventanaInformes {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px; 
  flex-wrap: wrap; 
  margin-top: 20px;
}

#botonBorrarHistorial {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px;
    text-align: center;
    z-index: 10;
}

#tablaIzqInf,
#tablaDerInf {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #tablaIzqInf,
  #tablaDerInf {
    flex-basis: 100%;
  }
}


.login-body {
  background-image: url('imagenes/fondo_inicio1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .login-body {
    background-size: contain;
  }
}

h1 {
  font-size: 2rem;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
}