:root{
  --husky-bg-900:#0f1419;
  --husky-bg-800:#171d24;
  --husky-primary:#1aa7a1; /* acento turquesa */
  --husky-primary-600:#15918c;
  --husky-ring:#30d5c8;
}

.bg-husky-900{ background-color: var(--husky-bg-900) !important; }
.bg-husky-800{ background-color: var(--husky-bg-800) !important; }

.btn-husky{
  background: linear-gradient(135deg, var(--husky-primary), var(--husky-ring));
  border: none;
  color:#0a0a0a;
  font-weight:700;
  box-shadow: 0 10px 24px rgba(48,213,200,.25);
}
.btn-husky:hover{ filter: brightness(.95); color:#000; }

.logo-navbar{ width:28px; height:28px; object-fit:contain; }

.card-login{
  max-width: 880px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  backdrop-filter: blur(6px);
  border-radius: 16px;
}

.logo-login{ width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); }

/* form inputs */
.form-control{
  background-color: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  color: #f1f5f9;
}
.form-control:focus{
  border-color: var(--husky-ring);
  box-shadow: 0 0 0 .25rem rgba(48,213,200,.25);
}

/* utilities */
.text-secondary{ color:#9aa4af !important; }

.layout-shell{ display:flex; min-height: calc(100vh - 0px); }
.sidebar{
  width: 260px; flex: 0 0 260px; background: var(--husky-bg-800);
  border-right: 1px solid rgba(255,255,255,.06);
  position: sticky; top:0; height:100vh; padding:16px;
}
.sidebar .brand{ display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.brand .logo-navbar{ width:32px; height:32px; }
.nav-husky a{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; margin-bottom:6px; text-decoration:none; color:#c9d1d9;
  border-radius:10px;
}
.nav-husky a:hover{ background: rgba(48,213,200,.1); color:#fff; }
.nav-husky a.active{ background: linear-gradient(135deg,rgba(48,213,200,.18),rgba(26,167,161,.18)); color:#fff; }
.content{ flex:1; }
.topbar{
  background: var(--husky-bg-800); border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (max-width: 991px){
  .sidebar{ position: fixed; z-index: 1040; left: -270px; transition: left .25s; }
  .sidebar.open{ left:0; }
  .content{ min-height: 100vh; }
}






.table > :not(caption) > * > * { background-color: transparent; }
.table thead th{ color:#9aa4af; font-weight:600; border-color: rgba(255,255,255,.08) !important; }
.table td, .table th{ border-color: rgba(255,255,255,.08) !important; }
.card{ background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border:1px solid rgba(255,255,255,.06); border-radius:14px; }
.pagination .page-link{ background: transparent; border-color: rgba(255,255,255,.18); color:#e5e7eb; }
.pagination .page-item.active .page-link{ background: linear-gradient(135deg,var(--husky-primary),var(--husky-ring)); color:#0a0a0a; border: none; }
/* Dashboard cards */
.husky-card-link{
  display:block;
  text-decoration:none;
  color:inherit;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.husky-card-link:hover{
  transform: translateY(-2px);
  border-color: rgba(48,213,200,0.35);
  background: rgba(255,255,255,0.05);
}
.husky-card-icon{
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 12px;
  background: rgba(26,167,161,0.15);
  border: 1px solid rgba(26,167,161,0.25);
}
.husky-card-icon i{ font-size: 1.3rem; color: var(--husky-primary); }
/* --- ESTILOS PARA SIDEBAR RETRAÍBLE (DESKTOP) --- */
.sidebar {
  /* Añadimos transición suave al ancho */
  transition: width 0.3s ease, flex 0.3s ease, left 0.3s ease;
  overflow-x: hidden; /* Evita que el texto se desborde al achicarse */
}

/* Transición para ocultar los textos suavemente */
.sidebar-text {
  transition: opacity 0.2s ease;
  white-space: nowrap;
  opacity: 1;
}

@media (min-width: 992px) {
  /* Estado cuando tiene la clase 'collapsed' */
  .sidebar.collapsed {
    width: 80px;
    flex: 0 0 80px;
    padding: 16px 8px; /* Reducimos el padding horizontal */
  }
  
  /* Ocultar los textos */
  .sidebar.collapsed .sidebar-text {
    opacity: 0;
    width: 0;
    visibility: hidden;
    pointer-events: none;
    display: none; /* Soporte extra para quitar el espacio */
  }

  /* Centrar la cabecera (logo) */
  .sidebar.collapsed .sidebar-head .d-flex {
    justify-content: center;
  }
  
  .sidebar.collapsed .logo-login {
    margin: 0 !important;
  }

  /* Centrar los íconos del menú */
  .sidebar.collapsed .nav-husky a {
    justify-content: center;
    padding: 10px 0;
  }
  
  .sidebar.collapsed .nav-icon {
    margin: 0 !important;
    font-size: 1.3rem; /* Íconos un poco más grandes al estar solos */
  }

  /* Centrar el botón de cerrar sesión */
  .sidebar.collapsed .btn-outline-danger {
    padding: 0.5rem 0;
    justify-content: center !important;
  }
  .sidebar.collapsed .btn-outline-danger i {
    margin: 0 !important;
    font-size: 1.2rem;
  }
}

/* Botón para retraer (solo visible en escritorio) */
.btn-toggle-desktop {
  background: transparent;
  border: none;
  color: #9aa4af;
  cursor: pointer;
  transition: color 0.2s;
  display: none; /* Oculto por defecto (móviles) */
}
.btn-toggle-desktop:hover {
  color: var(--husky-primary);
}
@media (min-width: 992px) {
  .btn-toggle-desktop {
    display: block; /* Visible en escritorio */
  }
}
