
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

body {
  font-family: 'Atkinson Hyperlegible Next', sans-serif !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Contenedor principal con sidebar */
.d-flex {
  /* min-height: 100vh; */
  display: flex !important;
}
.bg-body-color {
  background-color: #F1F6F9;
}

.container, .container-fluid {
  max-width: 1920px;
  margin: 0 auto;
}


/* body {
  max-width: 1440px;
  margin: 0 auto;
} */

.navbar {
  top: 0px;
  left: 0px;
  height: 93px;
  background: #FFFFFF 0% 0% no-repeat padding-box;
  box-shadow: 0px 0px 3px #00000029;
  opacity: 1;
}

.navbar .container-fluid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
}

.navbar-logo {
  justify-self: start;
}

.navbar-title {
  justify-self: center;
  grid-column: 2;
}

.navbar-actions {
  justify-self: end;
}

.brand-logo-navbar {
  width: 202px;
  height: 59px;
}
.navbar-title h1{
  font-weight: 500;
  font-size: 22px;
  line-height: 30px;
  font-style: normal;
}
.navbar-actions a{
  border: none;
  font-size: 18px;
  color: #000000;
}
.navbar-register-btn:hover, .navbar-register-btn:hover{
transition: transform 0.3s ease;
transform: scale(1.05);
}

/* === LOGIN FORM === */
.auth-card {
  top:50px;
  width: 597px;
  height: fit-content;
  background: #FFFFFF 0% 0% no-repeat padding-box;
  box-shadow: 0px 0px 0px #00000029;
  border-radius: 20px;
  opacity: 1;
  border: none!important;
  margin-bottom: 50px;
}
.register-card {
  top: 0px !important;

}


.auth-card-header {
  background: transparent;
  
  padding: 2rem 2rem 0rem 2rem;
}
.register-card-header {
  background: transparent;
  
  padding: 1rem 2rem 1rem 2rem;
}

.auth-title {
  font-weight: 800;   
  font-size: 30px;
  line-height: 41px;
  font-style: normal;
  color: #003865;
}
.auth-subtitle {
  font-weight: 500;
  font-size: 20px;
  line-height: 27px;
  font-style: normal;
  color: #000000;
}

.auth-card-body {
  padding: 2rem 3rem 2rem 3rem;
}

.register-card-body {
  padding: 0rem 3rem 1rem 3rem;
}

.auth-form .form-label {
  font-style: normal;
  font-variant: normal;
  font-weight: 500; 
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0;
  color: #000000;
  opacity: 1;
  /* margin-bottom: 0.5rem; */
}

.auth-form .form-control {
  height: 60px;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  opacity: 1;
  padding: 0 1rem;
}

.auth-form .form-control:focus {
  border-color: #d9d9d9;
  box-shadow: none;
}

.auth-form .form-control::placeholder {
  font-style: normal;
  font-variant: normal;
  font-weight: 400;   /* normal */
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  color: #888888;
  opacity: 1;
}

/* Iconos en inputs */
.input-with-icon {
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 30px 30px;
  padding-left: 55px !important;

}

.email-input {
  background-image: url('../icons/icon-user.svg');
}

.password-input {
  background-image: url('../icons/icon-password.svg');
}

.auth-form .input-group-text {
  background-color: transparent;
  border: none;
  border-right: none;
  padding-left: 1rem;
  color: #6c757d;
}

.auth-form .input-group .form-control {
  border-left: none;
  padding-left: 0.5rem;
}

.auth-form .input-group .form-control:focus {
  border-left: none;
  box-shadow: none;
}

.auth-form-link {
  font-style: normal;
  font-variant: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  color: #F28C00;
  opacity: 1;
  text-decoration: none;
}

.forgot-password-link:hover,
.card-footer a:hover {
  color: #F28C00;
  text-decoration: underline;
}


.auth-btn {
  width: 100%;
  height: 60px;
  margin-top:30px;
  background: #005F88 0% 0% no-repeat padding-box;
  box-shadow: 0px 3px 6px #00000029;
  border-radius: 8px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;  
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0;
  color: #ffffff;
  opacity: 1;
}
.auth-btn-reset {
  width: 100%;
  height: 60px;
  margin-top:30px;
  background: #005F88 0% 0% no-repeat padding-box;
  box-shadow: 0px 3px 6px #00000029;
  border-radius: 8px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;  
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0;
  color: #ffffff;
  opacity: 1;
  display: flex;
  justify-content: center;
    align-items: center;

}
.auth-btn-reset:hover{
  transform: translateY(-1px);
  width: 100%;
  height: 60px;
  background: #005F88 0% 0% no-repeat padding-box;
  box-shadow: 0px 3px 6px #00000029;
  border-radius: 8px;
  opacity: 1;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
    align-items: center;
}


.auth-btn:hover {
  transform: translateY(-1px);
  width: 100%;
  height: 60px;
  background: #005F88 0% 0% no-repeat padding-box;
  box-shadow: 0px 3px 6px #00000029;
  border-radius: 8px;
  opacity: 1;
  color: #FFFFFF;
 
}

.register-btn {
  width: 100%;
  height: 60px;
  margin-top:15px;
  background: #00A1A7 0% 0% no-repeat padding-box;
  box-shadow: 0px 3px 6px #00000029;
  border-radius: 8px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;  
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0;
  color: #ffffff;
  opacity: 1;
}

.register-btn:hover {
  transform: translateY(-1px);
  width: 100%;
  height: 60px;
  margin-top:15px;
  background: #00A1A7 0% 0% no-repeat padding-box;
  box-shadow: 0px 3px 6px #00000029;
  border-radius: 8px;
  font-style: normal;
  font-variant: normal;
  font-weight: 500;  
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0;
  color: #ffffff;
  opacity: 1;
 
}


.auth-card-footer {
  margin-bottom: 30px;
}

.auth-card-footer-text {
  font-style: normal;
  font-variant: normal;
  font-weight: 500;  
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  color: #888888;
}

/* === SIDEBAR STYLES === */
.main-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;  
  width: 250px;    
  background: #FFFFFF 0% 0% no-repeat padding-box;
  box-shadow: 0px 0px 3px #00000029;
  opacity: 1;
  display: flex;
  flex-direction: column;
}
.main-content {
  margin-left: 250px;  
  flex: 1;
 
}

.sidebar-header {
  padding: 1rem 1rem;

}

.sidebar-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  justify-content: center;
}

.sidebar-logo {
  width: 202px;
  height: 59px;
}

.sidebar-nav-container {
  flex: 1;
  padding: 0.5rem 0;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav-item {
  margin-bottom: 0.5rem;
}

.sidebar-nav-item.active {
  background-color: #005F88;

}

.sidebar-nav-item.active .sidebar-nav-link {
  color: #ffffff;
  background-color: transparent;
  margin: 0;
  border-radius: 0;
}

.sidebar-nav-item.active .sidebar-nav-text {
  color: #ffffff;
}

.sidebar-nav-item.active .sidebar-nav-icon {
  filter: none;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #495057;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
}

.sidebar-nav-link:hover {
  background-color: #f8f9fa;
  color: #005F88;
  text-decoration: none;
}

.sidebar-nav-link.active {
  background-color: #005F88;
  color: #ffffff;
  border-radius: 8px;
  margin: 0 1rem;
}

.sidebar-nav-link.active .sidebar-nav-text {
  color: #ffffff;
}

.sidebar-nav-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* Para iconos de Bootstrap Icons */
.sidebar-nav-link i.sidebar-nav-icon {
  font-size: 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-nav-text, .sidebar-footer-text {
  flex: 1;
  font-style: normal;
  font-weight: 400;  
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0;
  color: #000000;
  opacity: 1;
}



.sidebar-footer {
  padding: 1rem 0;

  margin-top: auto;
}

.sidebar-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-footer-item {
  margin-bottom: 0.5rem;
}

.sidebar-footer-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.sidebar-footer-link:hover {
  background-color: #f8f9fa;
  color: #495057;
  text-decoration: none;
}



.sidebar-footer-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.sidebar-footer-text {
  flex: 1;
}

.sidebar-nav-link .sidebar-nav-icon {
  filter: brightness(0) saturate(100%); 
}


.sidebar-nav-link.active .sidebar-nav-icon {
  filter: none; 
}

/* Icono de "Mis análisis" blanco cuando está activo */
.sidebar-nav-item.active .sidebar-nav-link img[alt="Mis análisis"], 
.sidebar-nav-item.active .sidebar-nav-link img[alt="Gestión de usuarios"],
.sidebar-nav-item.active .sidebar-nav-link img[alt="Normativas"],
.sidebar-nav-item.active .sidebar-nav-link img[alt="Mis conversaciones"],
.sidebar-nav-item.active .sidebar-nav-link img[alt="Estadísticas"],
.sidebar-nav-item.active .sidebar-nav-link img[alt="Usuario"] {
  filter: brightness(0) saturate(100%) invert(1);
}

.sidebar-footer-link .sidebar-footer-icon {
  filter: brightness(0) saturate(100%);
}

/* Estilos para elementos activos del footer */
.sidebar-footer-item.active {
  background-color: #005F88;
}

.sidebar-footer-item.active .sidebar-footer-link {
  color: #ffffff;
  background-color: transparent;
}

.sidebar-footer-item.active .sidebar-footer-text {
  color: #ffffff;
}

.sidebar-footer-item.active .sidebar-footer-link img[alt="Ayuda"],
.sidebar-footer-item.active .sidebar-footer-link img[alt="Privacidad"] {
  filter: brightness(0) saturate(100%) invert(1) !important;
}

/* Regla específica adicional para Aviso Legal */
.sidebar-footer-item.active .sidebar-footer-link img[src*="icon-legal"] {
  filter: brightness(0) saturate(100%) invert(1) !important;
}

/* === SIDEBAR DROPDOWN STYLES === */
.sidebar-dropdown-toggle {
  position: relative;
}

.sidebar-dropdown-arrow {
  position: absolute;
  right: 1.5rem;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.sidebar-dropdown-toggle[aria-expanded="true"] .sidebar-dropdown-arrow {
  transform: rotate(180deg);
}

/* El elemento padre dropdown nunca debe tener fondo azul */
.sidebar-nav-item.sidebar-dropdown .sidebar-nav-link {
  background-color: transparent !important;
}

.sidebar-nav-item.sidebar-dropdown .sidebar-nav-link:hover {
  background-color: #e9ecef !important;
  color: #005F88 !important;
}

.sidebar-submenu {
  background-color: #f8f9fa;
  border-left: 3px solid #005F88;
  margin-left: 1rem;
  margin-right: 1rem;
  border-radius: 0 8px 8px 0;
}

.sidebar-submenu-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.sidebar-submenu-item {
  margin-bottom: 0.25rem;
}

.sidebar-submenu-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: #000000;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.sidebar-submenu-link:hover {
  background-color: #e9ecef;
  color: #005F88;
  text-decoration: none;
}

.sidebar-submenu-link.active {
  background-color: #005F88;
  color: #ffffff;
  border-radius: 6px;
  margin: 0 0.5rem;
}

.sidebar-submenu-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  font-size: 14px;
  text-align: center;
}

.sidebar-submenu-text {
  flex: 1;
  font-weight: 400;
}

.main-content {
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content-container {
  padding: 2rem;
  flex: 1;
  min-height: 100vh;
}

.main-content-container.bg-dashboard {
  background-color: #F1F6F9;
  flex: 1;
  min-height: 100vh;
}

/* Spinner de carga para nuevos documentos */
.upload-spinner {
  display: none;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border: 2px dashed #e5e7eb;
}

.spinner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.spinner-icon {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-content p {
  margin: 0;
  font-weight: 600;
  color: #374151;
}

.spinner-content small {
  color: #6b7280;
  font-size: 0.875rem;
}

.alert-dismissible{
  text-align: center!important;

}
.custom-footer{
  background-color: #F1F6F9;
  padding: 2rem;
  display: flex;

 

}

.brand-logo-footer{
  width: 200px;
}


