html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

:root {
  --sidebar-collapsed-width: 64px;
  --sidebar-expanded-width: 240px;
  --sidebar-bg: #0f172a;
  --sidebar-text: #e2e8f0;
  --sidebar-text-muted: #94a3b8;
}

.app-shell {
  display: flex;
  min-height: calc(100vh - 120px);
  background: #f8fafc;
}

.app-sidebar {
  width: var(--sidebar-expanded-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  transition: width 0.2s ease;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.app-sidebar .nav-link {
  color: var(--sidebar-text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-weight: 500;
}

.app-sidebar .nav-link .icon {
  width: 22px;
  text-align: center;
}

.app-sidebar .nav-link .label {
  white-space: nowrap;
}

.app-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.app-sidebar.collapsed .label {
  display: none;
}

.app-sidebar.collapsed .sidebar-section {
  display: none;
}

.app-main {
  flex: 1;
  padding: 20px;
}

.footer {
  margin-top: 16px;
}

/* Estilos para los botones de acción (Create, Edit, Save) */
.btn-action {
  /* Tamaño y forma */
  padding: 10px 20px;
  border-radius: 8px; /* Esquinas redondeadas */
  border: none;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;

  /* Degradado azul */
  background: linear-gradient(45deg, #007bff, #0056b3);

  /* Sombra hacia la parte inferior derecha */
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);

  /* Transición para un efecto suave al pasar el mouse */
  transition: all 0.3s ease;
}

/* Efecto al pasar el mouse sobre los botones de acción */
.btn-action:hover {
  transform: translateY(-2px); /* Mueve el botón ligeramente hacia arriba */
  box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.3); /* Aumenta la sombra */
}


/* Estilos para los botones del índice (Edit, Details, Delete) */
.btn-index {
  /* Tamaño y forma pequeños y cuadrados */
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 5px;
  border: none;
  color: white;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;

  /* Degradado gris */
  background: linear-gradient(45deg, #6c757d, #343a40);

  /* Sombra hacia la parte inferior derecha */
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);

  /* Transición para un efecto suave */
  transition: all 0.3s ease;
}

/* Efecto al pasar el mouse sobre los botones del índice */
.btn-index:hover {
  transform: translateY(-1px);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25);
}

/* Estilos para los íconos dentro de los botones del índice */
.btn-index .icon {
  font-size: 16px; /* Tamaño del ícono */
  line-height: 1; /* Asegura que el ícono esté centrado verticalmente */
}


/* Estilos para los botones de acción (Create, Edit, Delete) */
.btn-action {
  /* Tamaño y forma */
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;

  /* Degradado azul */
  background: linear-gradient(45deg, #007bff, #0056b3);

  /* Sombra hacia la parte inferior derecha */
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);

  /* Transición para un efecto suave al pasar el mouse */
  transition: all 0.3s ease;
}

/* Efecto al pasar el mouse sobre los botones de acción */
.btn-action:hover {
  transform: translateY(-2px); /* Mueve el botón ligeramente hacia arriba */
  box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.3); /* Aumenta la sombra */
}


/* Estilos para el botón de eliminar */
.btn-delete {
  background: linear-gradient(45deg, #dc3545, #c82333);
}
.btn-delete:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.3);
}


/* Estilos para el botón de editar */
.btn-edit {
  background: linear-gradient(45deg, #ffc107, #e0a800);
}
.btn-edit:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.3);
}
/* Estilos para el botón de guardar */
.btn-save {
  background: linear-gradient(45deg, #28a745, #218838);
}
.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.3);
}
/* Estilos para el botón de crear */
.btn-create {
  background: linear-gradient(45deg, #007bff, #0056b3);
}
.btn-create:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.3);
}

/* Estilos para cards mejorados con hover y transiciones */
.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.transition-all {
  transition: all 0.3s ease;
}

/* Color para el icono púrpura */
.bg-purple {
  background-color: #6f42c1 !important;
}

.bg-purple-light {
  background-color: rgba(111, 66, 193, 0.1) !important;
}

.text-purple {
  color: #6f42c1 !important;
}

.btn-outline-purple {
  color: #6f42c1;
  border-color: #6f42c1;
}

.btn-outline-purple:hover {
  color: #fff;
  background-color: #6f42c1;
  border-color: #6f42c1;
}

.form-check.form-switch {
  display: flex;
  align-items: center;
}

.form-check.form-switch .form-check-input {
  margin-top: 0;
  margin-right: 0.5rem;
}

.form-check.form-switch .form-check-label {
  margin-bottom: 0;
}

.switch-col-uniform {
  min-height: 2.5rem;
}

.switch-col-uniform .form-check-label {
  font-size: 0.9rem;
  line-height: 1.15;
}

