:root {
    --font-inter: 'Inter', sans-serif;
    --navbar-height: 60px;
    --sidebar-width: 250px;
    --font-family: 'Inter', sans-serif;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: var(--font-family);
    min-height: 100vh;
    padding-top: var(--navbar-height);
    overflow-x: hidden;
  }
  
  .navbar {
    height: var(--navbar-height);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
  }

  .navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  .logo-img {
    max-width: 250px;
    height: auto;
    margin-right: 10px;
    transition: all 0.3s ease;
  }
  
  .navbar-text {
    color: rgba(255, 255, 255, 0.75);
  }
  
  .btn-warning {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
  }
  
  .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
  }
  
  .sidebar {
    width: var(--sidebar-width);
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    position: fixed;
    top: var(--navbar-height);
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  
  .sidebar-sticky {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  .sidebar-sticky ul.nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
  }

  .sidebar-sticky ul.nav::-webkit-scrollbar {
    width: 6px;
  }

  .sidebar-sticky ul.nav::-webkit-scrollbar-track {
    background: transparent;
  }

  .sidebar-sticky ul.nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }

  .sidebar-sticky ul.nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
  }

  /* Estilos para Firefox */
  .sidebar-sticky ul.nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  }

  /* Mejorar la experiencia de navegación */
  .sidebar .nav-link {
    transition: all 0.2s ease;
  }

  .sidebar .nav-link:hover {
    transform: translateX(2px);
  }

  .sidebar .nav-link.active {
    transform: translateX(0);
  }

  .sidebar .nav-link {
    color: #495057;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .sidebar .nav-link:hover,
  .sidebar .nav-link.active {
    background-color: #e9ecef;
    color: #0d6efd;
    font-weight: 500;
  }
  
  .sidebar .nav-link i {
    width: 1.25rem;
    text-align: center;
  }

  /* Estilos para la versión del sistema */
  .sidebar-sticky .version-info {
    flex-shrink: 0;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    text-align: center;
  }

  .sidebar-sticky .version-info small {
    color: #6c757d;
    font-size: 0.75rem;
  }

  .sidebar-sticky .version-info i {
    margin-right: 0.25rem;
  }
  
  .main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    width: calc(100% - var(--sidebar-width));
    transition: margin-left 0.3s ease;
  }
  
  /* Overlay para móviles */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

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

  @media (max-width: 767.98px) {
    .sidebar {
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      width: 280px;
      z-index: 1000;
    }
  
    .sidebar.show {
      transform: translateX(0);
    }
  
    .main-content {
      margin-left: 0;
      width: 100%;
    }

    .sidebar-sticky ul.nav {
      padding: 0.5rem 0;
    }

    .sidebar .nav-link {
      padding: 0.75rem 1rem;
      font-size: 0.9rem;
    }

    .version-info {
      padding: 0.75rem;
    }
    
    /* Logo más pequeño en móviles */
    .logo-img {
      max-width: 80px !important;
      height: auto !important;
    }

    /* Optimización del navbar en móviles */
    .navbar .container-fluid {
      padding-left: 0.5rem;
      padding-right: 0.5rem;
      gap: 0.5rem;
    }

    .navbar-brand {
      flex: 1;
      margin-right: 0.25rem;
      min-width: 0; /* Permite que el logo se reduzca */
    }

    /* Estilos mejorados para el botón de menú móvil */
    #mobileMenuToggle {
      border: 1px solid rgba(255, 255, 255, 0.4);
      color: rgba(255, 255, 255, 0.95);
      padding: 0.6rem 0.8rem;
      border-radius: 0.5rem;
      min-width: 48px;
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      background-color: rgba(255, 255, 255, 0.05);
      flex-shrink: 0; /* No se reduce */
    }

    #mobileMenuToggle:hover {
      background-color: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.7);
      color: white;
      transform: scale(1.08);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    #mobileMenuToggle:focus {
      box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.3);
      outline: none;
      background-color: rgba(255, 255, 255, 0.1);
    }

    #mobileMenuToggle:active {
      transform: scale(0.92);
      background-color: rgba(255, 255, 255, 0.25);
    }

    /* Mejorar el icono de hamburguesa */
    .navbar-toggler-icon {
      width: 1.2em;
      height: 1.2em;
    }
  }

  @media (max-width: 575.98px) {
    .sidebar {
      width: 100%;
    }
    
    /* Logo aún más pequeño en pantallas muy pequeñas */
    .logo-img {
      max-width: 60px !important;
      height: auto !important;
    }

    /* Optimización adicional para pantallas muy pequeñas */
    .navbar .container-fluid {
      padding-left: 0.25rem;
      padding-right: 0.25rem;
      gap: 0.25rem;
    }

    .navbar-brand {
      margin-right: 0.125rem;
    }

    #mobileMenuToggle {
      padding: 0.5rem 0.7rem;
      min-width: 44px;
      min-height: 44px;
      border-radius: 0.375rem;
    }
  }
  
  /* Otros estilos reutilizados */
  .alert {
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    padding: 0.75rem 1.25rem;
  }
  
  .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }
  
  .card {
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
  }
  
  .btn-primary, .btn-success, .btn-danger {
    color: #fff;
  }
  
  .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
  }
  
  .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
  }
  
  .btn-success {
    background-color: #198754;
    border-color: #198754;
  }
  
  .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
  }
  
  .table th {
    background-color: #f8f9fa;
  }
  
  .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
  
  .dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .stat-card {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 0.25rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .stat-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .stat-card h3 {
    font-size: 1.5rem;
    margin: 0;
  }
  
  .stat-card p {
    color: #6c757d;
    margin: 0;
  }
  
  .icon-large {
    font-size: 1.5rem;
  }
  
  .modal-header {
    background-color: #f8f9fa;
  }
  
  .tooltip {
    font-size: 0.875rem;
  }
  
  .badge, .status-badge {
    padding: 0.5em 0.75em;
    border-radius: 0.25rem;
  }
  
  .status-pending {
    background-color: #ffc107;
    color: #000;
  }
  
  .status-sent {
    background-color: #198754;
    color: #fff;
  }
  
  .status-failed {
    background-color: #dc3545;
    color: #fff;
  }
  
  .search-form {
    margin-bottom: 1rem;
  }
  
  .pagination {
    margin-top: 1rem;
  }
  
  .errorlist {
    color: #dc3545;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .required label::after {
    content: " *";
    color: #dc3545;
  }
  .no-sidebar {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* Estilos para información contextual */
  .border-left-primary {
    border-left: 4px solid #0d6efd !important;
  }
  
  .border-left-primary .card-body {
    background-color: rgba(13, 110, 253, 0.02);
  }
  
  /* Estilos para filtros del dashboard */
  #dashboardFilters .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #495057;
  }
  
  #dashboardFilters .form-control,
  #dashboardFilters .form-select {
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
  }
  
  #dashboardFilters .form-control:focus,
  #dashboardFilters .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  }
  
  #dashboardFilters .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .alert-info {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
    color: #084298;
  }
  
  /* Loading spinner */
  .chart-container .text-center {
    padding: 80px 0;
    color: #6c757d;
  }
  
  .chart-container .fa-spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  /* Estilos específicos para logos */
  .navbar-brand img {
    max-width: 250px !important;
    height: auto !important;
    margin-right: 10px;
  }
  
  /* Logo del login */
  .card-body img[src*="net360-logo.png"] {
    max-width: 280px !important;
    height: auto !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
  }