/*=======================================================================================*/
/*AJUSTES GENERALES*/
/*=======================================================================================*/
body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    position: relative;
}

/* Fondo con imagen y efecto oscurecido */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/index-bg1.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.4); /* Oscurecimiento */
    z-index: -1;
}

/* Contenedor del contenido */
.content {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

/* Imágenes responsivas */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Logo del navbar */
.navbar-logo {
    height: 50px;
    width: auto;
}

.section-spacing {
    padding-top: 100px;
    margin-bottom: 100px;
}


@media (min-width: 992px) {
    .fixed-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        overflow-y: auto;
        padding-top: 60px;
        width: 25%;
        display: block;
        padding-top: 100px;

    }
    .scrollable-content {
        margin-left: 25%;
        width: 75%;
        height: 100vh;
        overflow-y: auto;
        padding-top: 100px;
        background-color: white;
    }
}

@media (max-width: 991px) {
    .fixed-sidebar {
        display: none;
    }
    .scrollable-content {
        margin-left: 0;
        width: 100%;
        height: auto;
        overflow-y: visible;
        display: flex;
        flex-direction: column;
        background-color: white;
    }
}

html {
    scroll-behavior: smooth;
}



  .error {
    color: red;
    font-size: 0.9rem;
    margin-top: 0.25rem;
  }
  .preview-container {
    margin-top: 10px;
    max-width: 200px;
    max-height: 200px;
    overflow: hidden; /* Para recortar imágenes muy grandes */
  }
  .preview-container img,
  .preview-pdf {
    width: 100%;
    height: auto;
  }
  /* Si deseas usar un ícono para PDFs */
  .pdf-icon {
    font-size: 3rem;
    color: #dc3545;
  }


  .content-login {
    background-color: rgba(255, 255, 255, 0.8); /* Fondo blanco con opacidad */
    padding: 30px;
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  /**/

  /* Estilos para la sección de agregar artículo (prefijo: agregar-producto_) */

/* Contenedor del formulario de registro/edición */
.agregar-producto_form-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
  }
  
  /* Encabezado del formulario */
  .agregar-producto_form-header {
    text-align: center;
    background: #007bff;
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
  }
  
  /* Contenedor responsive para la tabla de artículos */
  .agregar-producto_table-responsive {
    margin-top: 30px;
  }
  
  /* Estilos para los botones de acción (editar y eliminar) */
  .agregar-producto_action-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2em;
    transition: color 0.3s ease;
  }
  
  .agregar-producto_action-btn.edit {
    color: #007bff;
  }
  
  .agregar-producto_action-btn.edit:hover {
    color: #0056b3;
  }
  
  .agregar-producto_action-btn.delete {
    color: #dc3545;
  }
  
  .agregar-producto_action-btn.delete:hover {
    color: #a71d2a;
  }
  
  /* Botón de exportación */
  .agregar-producto_export-btn {
    margin-bottom: 15px;
  }
  
  /* Estilos para el formulario de filtros */
  .agregar-producto_filter-form {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  /* Refuerza las etiquetas del formulario de filtros */
  .agregar-producto_filter-form .form-label {
    font-weight: bold;
    color: #495057;
    margin-bottom: 0.5rem;
  }
  
  .agregar-producto_filter-form input,
  .agregar-producto_filter-form select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
  }
  
  .agregar-producto_filter-form button,
  .agregar-producto_filter-form .btn {
    margin-top: 1rem;
  }
  
  .table-primary {
    background-color: #007bff !important;
    color: white !important;
  }
  
  .table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1) !important;
  }
  
  @media (max-width: 768px) {
    .agregar-producto_filter-form {
      padding: 10px;
    }
    
    .agregar-producto_filter-form .row > div {
      margin-bottom: 1rem;
    }
  }

.agregar-categoria_white-bg {
  background-color: #fff !important;
  padding-top: 80px;
}

.agregar-categoria_form-container {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
}

.agregar-categoria_form-header {
  text-align: center;
  background: #007bff;
  color: white;
  padding: 10px;
  border-radius: 10px 10px 0 0;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.agregar-categoria_table-responsive {
  margin-top: 30px;
}

.agregar-categoria_action-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.2em;
  transition: color 0.3s ease;
}

.agregar-categoria_action-btn.edit {
  color: #007bff;
}

.agregar-categoria_action-btn.edit:hover {
  color: #0056b3;
}

.agregar-categoria_action-btn.delete {
  color: #dc3545;
}

.agregar-categoria_action-btn.delete:hover {
  color: #a71d2a;
}

.agregar-categoria_export-btn {
  margin-bottom: 15px;
}

.agregar-categoria_filter-form {
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agregar-categoria_filter-form .form-label {
  font-weight: bold;
  color: #495057;
  margin-bottom: 0.5rem;
}

.agregar-categoria_filter-form input,
.agregar-categoria_filter-form select {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
}

.agregar-categoria_filter-form button,
.agregar-categoria_filter-form .btn {
  margin-top: 1rem;
}

.table-primary {
  background-color: #007bff !important;
  color: white !important;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.1) !important;
}

@media (max-width: 768px) {
  .agregar-categoria_filter-form {
    padding: 10px;
  }
  
  .agregar-categoria_filter-form .row > div {
    margin-bottom: 1rem;
  }
}

.dashboard-empresa_container {
  background-color: #fff !important;
  padding-top: 80px;
  min-height: 100vh;
}

.dashboard-empresa_profile-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-empresa_profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.dashboard-empresa_stat-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-empresa_stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-empresa_stat-icon {
  font-size: 2.5rem;
  color: #4e73df;
  transition: transform 0.3s ease;
}

.dashboard-empresa_stat-card:hover .dashboard-empresa_stat-icon {
  transform: scale(1.1);
}

.dashboard-empresa_document-list {
  max-height: 300px;
  overflow-y: auto;
  border-radius: 10px;
}

.dashboard-empresa_document-list::-webkit-scrollbar {
  width: 6px;
}

.dashboard-empresa_document-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.dashboard-empresa_document-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.dashboard-empresa_document-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.dashboard-empresa_list-item {
  border: none;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: background-color 0.3s ease;
}

.dashboard-empresa_list-item:hover {
  background-color: #f8f9fa;
}

.dashboard-empresa_card-header {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  color: white;
  border-radius: 15px 15px 0 0 !important;
  border: none;
}

.dashboard-empresa_card-header h5 {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.dashboard-empresa_info-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.dashboard-empresa_text-label {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.875rem;
}

.dashboard-empresa_text-value {
  color: #495057;
  font-weight: 500;
}

.dashboard-empresa_date-badge {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
}

.dashboard-empresa_file-icon {
  margin-right: 0.5rem;
  color: #4e73df;
}

/* Ajustes responsive */
@media (max-width: 768px) {
  .dashboard-empresa_container {
      margin-top: 100px;
      padding: 15px;
  }

  .dashboard-empresa_stat-card {
      margin-bottom: 1rem;
  }

  .dashboard-empresa_profile-card {
      margin-bottom: 1rem;
  }
}


/*****/

/* Estilos para el navbar empresarial (prefijo: navbar-empresa_) */

.navbar-empresa_nav {
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-empresa_brand {
  font-weight: bold;
}

.navbar-empresa_link {
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar-empresa_link:hover {
  color: #007bff !important;
}

.navbar-empresa_dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
  border-radius: 0.5rem;
}

.navbar-empresa_dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.navbar-empresa_dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.navbar-empresa_icon {
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

.navbar-empresa_toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-empresa_toggler:focus {
  box-shadow: none;
  outline: none;
}

/* Ajustes responsive */
@media (max-width: 991.98px) {
  .navbar-empresa_nav-items {
      padding: 1rem 0;
  }
  
  .navbar-empresa_dropdown-menu {
      border: none;
      box-shadow: none;
      padding: 0;
  }
  
  .navbar-empresa_dropdown-item {
      padding: 0.75rem 1rem;
  }
}



/* Estilos para el módulo de cargos (prefijo: agregar-cargo_) */
.agregar-cargo_container {
  background-color: #fff !important;
  padding-top: 80px;
}

.agregar-cargo_alert-floating {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
}

.agregar-cargo_description-cell {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agregar-cargo_card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

.agregar-cargo_card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0,0,0,.125);
}

.agregar-cargo_table th {
  background-color: #f8f9fa;
}

.agregar-cargo_form-container {
  margin-top: 30px;
}

.agregar-cargo_table-container {
  margin-top: 20px;
}

.agregar-cargo_btn-action {
  margin: 0 2px;
} 