/* Estilos personalizados para la aplicación Jelpit Conjuntos */

/* ============================================
   PALETA DE COLORES OFICIAL JELPIT CONJUNTOS
   ============================================ */
:root {
  /* Colores Principales */
  --primary-color: #2E0063;           /* Morado oscuro - Color principal */
  --primary-color-light: #4a148c;     /* Morado claro para gradientes */
  --secondary-color: #2E0063;         /* Legacy */
  --accent-color: #D2FF5C;            /* Verde lima - Acentos y CTAs */
  --accent-color-hover: #c4f050;      /* Verde lima hover */
  --success-color: #82E778;           /* Verde - Estados positivos */
  
  /* Colores Secundarios */
  --secondary-blue: #7598BC;          /* Azul secundario */
  --secondary-gray: #909898;          /* Gris medio */
  --secondary-light: #CACACA;         /* Gris claro */
  
  /* Colores de Estado */
  --warning-color: #FFA500;           /* Naranja - Alertas */
  --error-color: #dc3545;             /* Rojo - Errores */
  
  /* Texto */
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-muted: #909898;
  
  /* Layout */
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 70px;
}

/* Estilos globales */
body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

.wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles - Seguros Bolívar */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #2E0063 0%, #1a0038 100%);
  color: var(--text-light);
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-logo {
  padding: 1rem 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar.collapsed .logo-header {
  justify-content: center;
}

.sidebar.collapsed .logo {
  display: none;
}

.sidebar.collapsed .nav-toggle {
  display: none;
}

.sidebar.collapsed .text-section {
  display: none;
}

.sidebar.collapsed .nav-item > a p {
  display: none;
}

.sidebar.collapsed .nav-item > a .caret {
  display: none;
}

.sidebar.collapsed .nav-item > a {
  padding: 0.75rem;
  justify-content: center;
}

.sidebar.collapsed .nav-item > a i {
  margin-right: 0;
}

.sidebar.collapsed .nav-collapse {
  display: none;
}

.sidebar.collapsed .sidebar_item {
  display: none;
}

.sidebar.collapsed .sidebar-content {
  padding: 0 0.5rem;
}

.sidebar.collapsed .nav-section {
  padding: 0;
  margin-bottom: 0.5rem;
}

.sidebar-logo {
  padding: 1.25rem 1rem;
}

.logo-header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo img {
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  gap: 0.5rem;
}

.btn-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-wrapper {
  padding: 1rem 0;
}

.sidebar-content {
  padding: 0 1rem;
  position: relative;
}

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.nav-section {
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.sidebar-mini-icon {
  display: none;
}

.text-section {
  color: var(--accent-color);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  padding: 0.75rem 0 0.5rem;
  opacity: 0.9;
}

.nav-item {
  margin-bottom: 0.25rem;
  position: relative;
  width: 100%;
}

.nav-item > a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.75rem 1rem;
  padding-right: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  width: 100%;
  position: relative;
  background: transparent;
  margin-bottom: 0.25rem;
  border-left: 3px solid transparent;
}

/* Solo el menú de la sección activa se sombrea (UX: indicar dónde está el usuario) */
.nav-item.sidebar-parent-active > a {
  background: rgba(210, 255, 92, 0.15);
  border-left-color: var(--accent-color);
}

.nav-item > a:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-item.sidebar-parent-active > a:hover {
  background: rgba(210, 255, 92, 0.2);
}

.nav-item > a[aria-expanded="true"] {
  background: rgba(210, 255, 92, 0.15);
  border-left: 3px solid var(--accent-color);
}

.nav-item > a.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.nav-item > a i {
  margin-right: 0.75rem;
  width: 22px;
  text-align: center;
  color: var(--accent-color);
  font-size: 1.125rem;
  flex-shrink: 0;
  opacity: 0.9;
}

.nav-item > a p {
  color: #ffffff;
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item > a .caret {
  transition: transform 0.3s ease;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.7);
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  display: block;
}

.nav-item > a:hover .caret {
  border-top-color: rgba(255, 255, 255, 0.9);
}

.nav-item > a[aria-expanded="true"] .caret {
  transform: translateY(-50%) rotate(180deg);
  border-top-color: rgba(255, 255, 255, 0.9);
}

.nav-collapse {
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.sidebar_item {
  margin-bottom: 0.25rem;
}

.sidebar_item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  position: relative;
  border-left: 3px solid transparent;
  margin-left: -3px;
}

.sidebar_item a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-left-color: rgba(210, 255, 92, 0.4);
}

.sidebar_item a.active {
  background-color: rgba(210, 255, 92, 0.08);
  color: #ffffff;
  font-weight: 500;
  border-left: 3px solid var(--accent-color);
}

.sidebar_item a.active i {
  color: var(--accent-color);
}

.sidebar_item a.active .item {
  color: #ffffff;
}

.sidebar_item a i {
  margin-right: 0.75rem;
  width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.sidebar_item a:hover i {
  color: rgba(255, 255, 255, 0.95);
}

.sidebar_item a .item {
  color: inherit;
}

/* Main Panel Styles */
.main-panel {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
  min-height: 100vh;
  background-color: #f8f9fa;
  width: calc(100% - var(--sidebar-width));
  max-width: calc(100% - var(--sidebar-width));
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Asegurar que el wrapper sea responsive */
.wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.sidebar.collapsed ~ .main-panel,
.wrapper.sidebar-collapsed .main-panel {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
  max-width: calc(100% - var(--sidebar-collapsed-width));
}

@media (max-width: 768px) {
  .main-panel {
    width: 100%;
    margin-left: 0;
    max-width: 100%;
  }
  
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
}

.main-header {
  background-color: #ffffff !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  border-bottom: 1px solid #e5e7eb;
  transition: none !important;
  will-change: auto;
  isolation: isolate;
  contain: layout style paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.navbar-header {
  width: 100%;
  background: #ffffff !important;
  background-color: #ffffff !important;
  padding: 0;
  margin: 0;
  transition: none !important;
  will-change: auto;
  isolation: isolate;
  contain: layout style paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
  max-width: 100%;
  background: #ffffff !important;
  background-color: #ffffff !important;
  transition: none !important;
  will-change: auto;
  isolation: isolate;
  contain: layout style paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.navbar-title,
#tittle_modulo {
  color: #2E0063 !important;
  transition: none !important;
  will-change: auto;
  isolation: isolate;
  contain: layout style paint;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.navbar-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.navbar-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.topbar-user {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.topbar-user .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.topbar-user .profile-pic {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-pic {
  text-decoration: none;
  color: var(--text-dark);
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  box-shadow: none;
}

.profile-pic::before,
.profile-pic::after {
  display: none;
}

.avatar-sm {
  width: 40px;
  height: 40px;
  border: none;
  outline: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  outline: none;
  box-shadow: none;
}

.dropdown-toggle {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  outline: none;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  max-width: 320px;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  z-index: 1050;
  background: white;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu.dropdown-user {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Asegurar visibilidad cuando está abierto */
.topbar-user {
  position: relative;
}

.topbar-user .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Asegurar que el dropdown no esté oculto por defecto cuando está visible */
.topbar-user .dropdown-menu[role="menu"] {
  display: block !important;
}

.user-box {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.avatar-lg {
  width: 60px;
  height: 60px;
  margin: 0;
  flex-shrink: 0;
}

.u-text {
  flex: 1;
  min-width: 0;
}

.u-text h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.u-text p {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  color: var(--text-dark);
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--text-dark);
}

.dropdown-divider {
  height: 1px;
  background-color: #e9ecef;
  margin: 0.5rem 0;
}

/* Main Content */
.main-content {
  padding: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .main-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .main-content {
    padding: 0.75rem;
  }
}

/* Card Styles */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card-header {
  background-color: var(--text-light);
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.card-body {
  padding: 1.5rem;
}

/* Stats Cards */
.card-stats {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-light);
  border: none;
}

.card-stats .icon-big {
  text-align: center;
}

.card-stats .icon-big i {
  font-size: 2.5rem;
  opacity: 0.8;
}

.card-stats .card-title {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
}

.card-stats .card-category {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.card-stats .card-footer {
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.card-stats .stats {
  color: rgba(255, 255, 255, 0.9);
}

/* Table Styles */
.table {
  margin-bottom: 0;
}

.table th {
  background-color: #f8f9fa;
  border-top: none;
  font-weight: 600;
  color: var(--text-dark);
  padding: 1rem 0.75rem;
}

.table td {
  padding: 1rem 0.75rem;
  vertical-align: middle;
  border-top: 1px solid #e9ecef;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Badge Styles */
.badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
}

.badge-success {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.text-success {
  color: var(--primary-color);
}

.badge-warning {
  background-color: var(--accent-color);
  color: var(--text-dark);
}

.text-warning {
  color: var(--accent-color);
}

.badge-danger {
  background-color: #dc3545;
  color: var(--text-light);
}

.text-danger {
  color: #dc3545;
}

.badge-secondary {
  background-color: #6c757d;
  color: var(--text-light);
}

/* Button Styles */
.btn-group .btn {
  margin-right: 0.25rem;
}

.btn-group .btn:last-child {
  margin-right: 0;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.breadcrumbs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: '>';
  margin: 0 0.5rem;
  color: #6c757d;
}

.breadcrumbs a {
  color: #6c757d;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary-color);
}

/* Responsive - Mobile First Approach */

/* Overlay para cerrar el sidebar en móviles */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1049;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Tablet and below (768px) */
@media (max-width: 768px) {
  /* Sidebar Overlay */
  .sidebar-overlay {
    display: block;
  }
  
  /* Sidebar */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1050;
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .sidebar-logo {
    padding: 0.75rem;
  }
  
  .logo img {
    max-height: 52px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  /* Main Panel */
  .main-panel {
    width: 100%;
    margin-left: 0;
  }
  
  /* Navbar Header */
  .navbar-container {
    padding: 0.75rem 1rem;
  }
  
  .navbar-title,
  #tittle_modulo {
    font-size: 1.25rem;
    color: #2E0063 !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
  }
  
  .navbar-right {
    gap: 0.5rem;
  }
  
  /* Main Content */
  .main-content {
    padding: 1rem;
  }
  
  .main-content .container-fluid {
    padding: 0;
  }
  
  /* Navigation Items */
  .nav-item > a {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .nav-item > a i {
    font-size: 1rem;
    width: 20px;
    margin-right: 0.5rem;
  }
  
  .nav-item > a p {
    font-size: 0.875rem;
  }
  
  .nav-item > a .caret {
    right: 0.75rem;
  }
  
  /* Sidebar Content */
  .sidebar-content {
    padding: 0 0.75rem;
  }
  
  .text-section {
    font-size: 0.7rem;
    padding: 0.375rem 0;
  }
  
  /* Submenu Items */
  .sidebar_item a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .sidebar_item a i {
    font-size: 1rem;
    width: 18px;
    margin-right: 0.5rem;
  }
}

/* Mobile Small (576px and below) */
@media (max-width: 576px) {
  /* Sidebar */
  .sidebar-logo {
    padding: 0.5rem;
  }
  
  .logo img {
    max-height: 46px;
  }
  
  /* Navbar */
  .navbar-container {
    padding: 0.5rem 0.75rem;
  }
  
  .navbar-title,
  #tittle_modulo {
    font-size: 1.125rem;
    color: #2E0063 !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
  }
  
  .avatar-sm {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
  }
  
  /* Main Content */
  .main-content {
    padding: 0.75rem;
  }
  
  /* Navigation Items */
  .nav-item > a {
    padding: 0.5rem 0.625rem;
  }
  
  .nav-item > a .caret {
    right: 0.625rem;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid rgba(255, 255, 255, 0.7);
  }
  
  /* Sidebar Content */
  .sidebar-content {
    padding: 0 0.5rem;
  }
  
  .nav-item > a p {
    font-size: 0.8125rem;
  }
}

/* Desktop Large (1200px and above) */
@media (min-width: 1200px) {
  .main-panel {
    max-width: calc(100vw - var(--sidebar-width));
  }
  
  .main-content {
    max-width: 100%;
    padding: 2rem;
  }
  
  .main-content .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
  }
}

/* Desktop Extra Large (1400px and above) */
@media (min-width: 1400px) {
  .main-content .container-fluid {
    max-width: 1600px;
  }
}

/* Desktop Ultra Large (1920px and above) */
@media (min-width: 1920px) {
  .main-content .container-fluid {
    max-width: 1800px;
  }
}

/* Tablet Landscape (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --sidebar-width: 220px;
  }
  
  .sidebar {
    width: 220px;
  }
  
  .main-panel {
    margin-left: 220px;
    width: calc(100% - 220px);
    max-width: calc(100% - 220px);
  }
  
  .navbar-container {
    padding: 1rem 1.25rem;
  }
  
  .main-content {
    padding: 1.5rem;
  }
}

/* Desktop Medium (1024px - 1200px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .main-content {
    padding: 1.75rem;
  }
  
  .main-content .container-fluid {
    max-width: 1200px;
  }
}

/* Responsive Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
  }
  
  .table {
    min-width: 600px;
    margin-bottom: 0;
  }
  
  .table thead th,
  .table tbody td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .table {
    min-width: 500px;
    font-size: 0.8125rem;
  }
  
  .table thead th,
  .table tbody td {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Responsive Cards */
.card {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .card-body {
    padding: 0.75rem;
  }
}

/* Responsive Forms */
.form-group {
  margin-bottom: 1rem;
}

/* Asegurar que los formularios sean responsive */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

[class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

/* Columnas responsive */
@media (min-width: 576px) {
  .col-sm-12 { width: 100%; }
  .col-sm-6 { width: 50%; }
  .col-sm-4 { width: 33.333333%; }
}

@media (min-width: 768px) {
  .col-md-12 { width: 100%; }
  .col-md-6 { width: 50%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-3 { width: 25%; }
}

@media (min-width: 992px) {
  .col-lg-12 { width: 100%; }
  .col-lg-6 { width: 50%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-3 { width: 25%; }
}

@media (min-width: 1200px) {
  .col-xl-12 { width: 100%; }
  .col-xl-6 { width: 50%; }
  .col-xl-4 { width: 33.333333%; }
  .col-xl-3 { width: 25%; }
}

@media (min-width: 1400px) {
  .col-xxl-12 { width: 100%; }
  .col-xxl-6 { width: 50%; }
  .col-xxl-4 { width: 33.333333%; }
  .col-xxl-3 { width: 25%; }
}

@media (max-width: 576px) {
  .form-group {
    margin-bottom: 0.75rem;
  }
  
  .form-control {
    font-size: 16px; /* Evita zoom en iOS */
  }
  
  [class*="col-"] {
    width: 100% !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Responsive Buttons */
@media (max-width: 576px) {
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Responsive Grid - Ya está definido arriba */

/* Scrollbar Styles */
.sidebar-wrapper::-webkit-scrollbar {
  width: 6px;
}

.sidebar-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

