/* Estilos personalizados de sidebar y layout */
.sidebar {
    width: 280px;
    min-height: calc(100vh - 100px);
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 0 15px 15px 0;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12, #27ae60);
    background-size: 400% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sidebar p {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
    color: #bdc3c7;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}



.main-wrapper {
    flex: 1;
    display: flex;
    overflow-y: hidden;
    min-height: calc(100vh - 120px);
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 5rem;
    margin-bottom: 60px;
    transition: margin-left 0.3s ease;
}



.fondo-transparente {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 35, 65, 0.02);
    z-index: -1;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.header {
    height: 60px;
    background-color: #0b2341;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex-shrink: 0;
    position: relative;
}

.header-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.header-logo-img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.05);
}

.header-logout {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Estilos mejorados para los enlaces del sidebar */
.sidebar a {
    text-decoration: none;
    color: #ecf0f1;
    display: block;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    margin: 8px 0;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.sidebar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.sidebar a:hover::before {
    left: 100%;
}

.sidebar a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.sidebar a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar a:hover i {
    transform: scale(1.2);
    color: #3498db;
}

/* Estilos específicos para el botón de administrar usuarios */
.sidebar .admin-link {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-left: 4px solid #ffc107;
    padding: 15px 15px;
    margin: 10px 0;
    border-radius: 12px;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

/* Estilos específicos para el botón de Utilidades Aplicaciones */
.sidebar a[href*="UtilidadesApp"] {
    border-left: 4px solid #9b59b6;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.2);
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(155, 89, 182, 0.05) 100%);
}

.sidebar a[href*="UtilidadesApp"] i {
    color: #9b59b6;
}

.sidebar a[href*="UtilidadesApp"]:hover {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2) 0%, rgba(155, 89, 182, 0.1) 100%);
    border-color: #9b59b6;
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.3);
    transform: translateX(10px) scale(1.02);
}

.sidebar a[href*="UtilidadesApp"]:hover i {
    color: #8e44ad;
    transform: scale(1.3) rotate(5deg);
}

.sidebar .admin-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, transparent 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar .admin-link:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 193, 7, 0.2) 100%);
    color: #ffc107;
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.sidebar .admin-link:hover::after {
    opacity: 1;
}

.sidebar .admin-link i {
    color: #ffc107;
    margin-right: 12px;
    font-size: 16px;
}

.sidebar .admin-link:hover i {
    transform: scale(1.3) rotate(5deg);
    color: #ffd700;
}

/* Estilos con colores específicos para cada botón del sidebar */
.sidebar a[href*="Dashboard"] {
    border-left: 4px solid #17a2b8;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.2);
}

.sidebar a[href*="Dashboard"] i {
    color: #17a2b8;
}

.sidebar a[href*="Dashboard"]:hover {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.2) 0%, rgba(23, 162, 184, 0.1) 100%);
    border-color: #17a2b8;
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.3);
}

.sidebar a[href*="Dashboard"]:hover i {
    color: #17a2b8;
}

.sidebar a[href*="Servidores"] {
    border-left: 4px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.sidebar a[href*="Servidores"] i {
    color: #28a745;
}

.sidebar a[href*="Servidores"]:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.1) 100%);
    border-color: #28a745;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.sidebar a[href*="Servidores"]:hover i {
    color: #28a745;
}

.sidebar a[href*="Aplicaciones"] {
    border-left: 4px solid #6f42c1;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.2);
}

.sidebar a[href*="Aplicaciones"] i {
    color: #6f42c1;
}

.sidebar a[href*="Aplicaciones"]:hover {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.2) 0%, rgba(111, 66, 193, 0.1) 100%);
    border-color: #6f42c1;
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.3);
}

.sidebar a[href*="Aplicaciones"]:hover i {
    color: #6f42c1;
}

/* Estilos de DocumentosLegales eliminados - tabla ya no existe */

.sidebar a[href*="Contenidos"] {
    border-left: 4px solid #6f42c1;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.2);
}

.sidebar a[href*="Contenidos"] i {
    color: #6f42c1;
}

.sidebar a[href*="Contenidos"]:hover {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.2) 0%, rgba(111, 66, 193, 0.1) 100%);
    border-color: #6f42c1;
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.3);
}

.sidebar a[href*="Contenidos"]:hover i {
    color: #6f42c1;
}

.sidebar a[href*="Suscripciones"] {
    border-left: 4px solid #e83e8c;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.2);
}

.sidebar a[href*="Suscripciones"] i {
    color: #e83e8c;
}

.sidebar a[href*="Suscripciones"]:hover {
    background: linear-gradient(135deg, rgba(232, 62, 140, 0.2) 0%, rgba(232, 62, 140, 0.1) 100%);
    border-color: #e83e8c;
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.3);
}

.sidebar a[href*="Suscripciones"]:hover i {
    color: #e83e8c;
}

.sidebar a[href*="Contabilidad"] {
    border-left: 4px solid #20c997;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.2);
}

.sidebar a[href*="Contabilidad"] i {
    color: #20c997;
}

.sidebar a[href*="Contabilidad"]:hover {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.2) 0%, rgba(32, 201, 151, 0.1) 100%);
    border-color: #20c997;
    box-shadow: 0 6px 20px rgba(32, 201, 151, 0.3);
}

.sidebar a[href*="Contabilidad"]:hover i {
    color: #20c997;
}

.sidebar a[href*="Logs"] {
    border-left: 4px solid #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.sidebar a[href*="Logs"] i {
    color: #dc3545;
}

.sidebar a[href*="Logs"]:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(220, 53, 69, 0.1) 100%);
    border-color: #dc3545;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.sidebar a[href*="Logs"]:hover i {
    color: #dc3545;
}

/* Efectos de activo para el enlace actual */
.sidebar a.active {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(52, 152, 219, 0.1) 100%);
    border-left: 4px solid #3498db;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.sidebar a.active i {
    color: #3498db;
}

/* Animación de entrada para los enlaces */
.sidebar a {
    animation: slideInLeft 0.5s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.sidebar a:nth-child(1) { animation-delay: 0.1s; }
.sidebar a:nth-child(2) { animation-delay: 0.2s; }
.sidebar a:nth-child(3) { animation-delay: 0.3s; }
.sidebar a:nth-child(4) { animation-delay: 0.4s; }
.sidebar a:nth-child(5) { animation-delay: 0.5s; }
.sidebar a:nth-child(6) { animation-delay: 0.6s; }
.sidebar a:nth-child(7) { animation-delay: 0.7s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.footer {
    height: 40px;
    background-color: #0b2341;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    padding: 8px;
    flex-shrink: 0;
    margin-top: auto;
}

/* Resto de estilos existentes */
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: 0;
  overflow-y: hidden;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Estilos adicionales para mejorar la experiencia de usuario */

/* Asegurar que los formularios largos tengan suficiente espacio */
.card {
    margin-bottom: 2rem;
}

/* Espacio adicional para formularios complejos */
.form-group:last-child {
    margin-bottom: 2rem;
}

/* Asegurar que el contenido del formulario sea visible */
.main-content .card-body {
    padding-bottom: 2rem;
}

/* Estilos específicos para el formulario de crear aplicación */
#formAplicacion {
    margin-bottom: 3rem;
}

/* Asegurar que el modal del explorador de archivos sea completamente visible */
.modal-dialog {
    max-height: 90vh;
    overflow-y: auto;
}

/* Asegurar que el contenido del modal sea visible */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Efectos hover para botones */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

/* Estilos para botones de mostrar/ocultar contraseña */
.input-group .btn-outline-secondary {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .btn-outline-secondary:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.input-group .form-control:focus {
    border-right: none;
    box-shadow: none;
}

.input-group .form-control:focus + .btn-outline-secondary {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Efectos de transición suaves */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Mejoras para formularios */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Estilos para alertas */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

/* Mejoras para tablas */
.table {
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Efectos para botones de acción */
.btn-group .btn {
    transition: all 0.2s ease;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
    z-index: 2;
}

/* Mejoras para modales */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0;
}

/* Estilos para el explorador de archivos */
.cursor-pointer {
    transition: all 0.2s ease;
}

.cursor-pointer:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

/* Mejoras para la previsualización del archivo systemd */
pre {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
}

/* Efectos para iconos */
.fas, .far, .fab {
    transition: all 0.2s ease;
}

.btn:hover .fas,
.btn:hover .far,
.btn:hover .fab {
    transform: scale(1.1);
}

/* Mejoras para inputs de archivo */
.form-control[type="file"] {
    border: 2px dashed #dee2e6;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.form-control[type="file"]:hover {
    border-color: #86b7fe;
    background: linear-gradient(135deg, #e7f3ff 0%, #d1ecf1 100%);
}

/* Estilos para el progreso de subida */
.progress {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.progress-bar {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Mejoras para badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Efectos para enlaces */
a {
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

/* Mejoras para el layout principal */
.container-fluid {
    padding: 20px;
}

/* Estilos para tooltips personalizados */
.custom-tooltip {
    position: relative;
    cursor: help;
}

.custom-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.custom-tooltip:hover::after {
    opacity: 1;
}

/* Animaciones de carga */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animaciones para toast notifications */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Estilos para botones de copiar */
.btn-outline-info {
    border-color: #17a2b8;
    color: #17a2b8;
}

.btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-outline-info:focus {
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Estilos específicos para que el botón Ver tenga el mismo aspecto que Audio y Video */
.btn-info {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #17a2b8 !important;
    --bs-btn-border-color: #17a2b8 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #138496 !important;
    --bs-btn-hover-border-color: #117a8b !important;
    --bs-btn-focus-shadow-rgb: 23, 162, 184 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #117a8b !important;
    --bs-btn-active-border-color: #10707f !important;
    border-radius: 0.375rem !important;
}

/* Mejoras para input-group con múltiples botones */
.input-group .btn {
    border-left: 1px solid #dee2e6;
}

.input-group .btn:first-child {
    border-left: none;
}

.input-group .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Mejoras para responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 4px !important;
        margin-bottom: 0.25rem;
    }
}

/* Estilos para el editor de código */
#codeEditor {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
}

/* ======================================== */
/* ESTILOS PARA UTILIDADES APLICACIONES */
/* ======================================== */

/* Contenedor principal de Utilidades App */
.utilidades-app-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Título principal de Utilidades App */
.utilidades-app-title {
    color: #2c3e50;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.utilidades-app-title i {
    color: #9b59b6;
    margin-right: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Tarjetas de utilidades */
.utilidad-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.utilidad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12, #27ae60);
    background-size: 400% 100%;
    animation: gradientShift 3s ease infinite;
}

.utilidad-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.utilidad-card .card-body {
    padding: 2.5rem;
    text-align: center;
}

/* Iconos de las utilidades */
.utilidad-icono {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.utilidad-card:hover .utilidad-icono {
    transform: scale(1.1) rotate(5deg);
}

/* Títulos de las tarjetas */
.utilidad-titulo {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Descripción de las tarjetas */
.utilidad-descripcion {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Botones de las utilidades */
.utilidad-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.utilidad-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.utilidad-btn:hover::before {
    left: 100%;
}

.utilidad-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Colores específicos para cada botón */
.utilidad-btn.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.utilidad-btn.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
}

.utilidad-btn.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.utilidad-btn.btn-success:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.utilidad-btn.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.utilidad-btn.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
}

/* Tarjeta de información */
.utilidad-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.utilidad-info-card .card-header {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    border-bottom: none;
    border-radius: 13px 13px 0 0;
    padding: 1.5rem;
}

.utilidad-info-card .card-header h5 {
    color: white !important;
    margin: 0;
    font-weight: 600;
}

.utilidad-info-card .card-header i {
    color: white;
    margin-right: 10px;
}

.utilidad-info-card .card-body {
    padding: 2rem;
    color: #2c3e50;
}

.utilidad-info-card .card-body strong {
    color: #9b59b6;
}

.utilidad-info-card .card-body ul {
    margin-bottom: 0;
}

.utilidad-info-card .card-body li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .utilidades-app-container {
        padding: 1rem;
    }
    
    .utilidad-card .card-body {
        padding: 1.5rem;
    }
    
    .utilidad-icono {
        font-size: 3rem;
    }
    
    .utilidad-titulo {
        font-size: 1.1rem;
    }
    
    .utilidad-descripcion {
        font-size: 0.9rem;
    }
    
    .utilidad-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Animaciones de entrada para las tarjetas */
.utilidad-card {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.utilidad-card:nth-child(1) { animation-delay: 0.1s; }
.utilidad-card:nth-child(2) { animation-delay: 0.2s; }
.utilidad-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de brillo en hover para las tarjetas */
.utilidad-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.utilidad-card:hover::after {
    left: 100%;
}

.modal-xl {
    max-width: 95%;
}

.modal-xl .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

/* Estilos para botones del editor */
.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-outline-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Mejoras para el modal del editor */
#editorModal .modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#editorModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
}

#editorModal .modal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 12px 12px;
}

/* Estilos para los campos del editor */
#filePath, #fileType {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

#filePath:focus, #fileType:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Animaciones para botones de carga */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Estilos para la consola SSH */
.consola-ssh-container {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

.consola-header {
    background: #2d2d2d;
    color: #ffffff;
    padding: 10px 15px;
    border-bottom: 1px solid #444;
}

.consola-body {
    background: #000000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 15px;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

.consola-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    width: 100%;
    padding: 5px;
}

.consola-prompt {
    color: #00ff00;
    font-weight: bold;
    margin-right: 10px;
}

.consola-comando {
    color: #ffff00;
    font-weight: bold;
    margin-bottom: 5px;
}

.consola-resultado {
    color: #ffffff;
    white-space: pre-wrap;
    margin-bottom: 10px;
    line-height: 1.4;
}

.consola-error {
    color: #ff0000;
}

.consola-info {
    color: #00ffff;
}

.consola-timestamp {
    color: #888888;
    font-size: 12px;
    margin-right: 10px;
}

.consola-botones-rapidos {
    background: #2d2d2d;
    padding: 10px;
    border-top: 1px solid #444;
}

.comando-boton {
    background: #3d3d3d;
    border: 1px solid #555;
    color: #00ff00;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
}

.comando-boton:hover {
    background: #4d4d4d;
    border-color: #00ff00;
    color: #ffffff;
}

/* Animación de cursor parpadeante */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.consola-cursor {
    animation: blink 1s infinite;
}

/* Scrollbar personalizado para la consola */
.consola-body::-webkit-scrollbar {
    width: 8px;
}

.consola-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.consola-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.consola-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Estilos para el submenú de ORGANIZACIÓN */
.sidebar-submenu {
    margin-bottom: 15px;
}

.sidebar-submenu-header {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ecf0f1;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-submenu-header i {
    color: #3498db;
    font-size: 16px;
}

.sidebar-submenu-items {
    padding-left: 20px;
}

.submenu-item {
    display: block;
    padding: 8px 12px;
    margin-bottom: 5px;
    color: #bdc3c7;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
    position: relative;
}

.submenu-item:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #ecf0f1;
    transform: translateX(5px);
}

.submenu-item.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-left: 3px solid #3498db;
}

.submenu-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    color: #95a5a6;
}

.submenu-item:hover i,
.submenu-item.active i {
    color: #3498db;
}

.submenu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #3498db;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submenu-item:hover::before,
.submenu-item.active::before {
    opacity: 1;
}

/* Estilos mejorados para el Dashboard - Mejor legibilidad */
.dashboard-title {
    color: #2c3e50 !important;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.dashboard-subtitle {
    color: #34495e !important;
    font-weight: 500;
}

/* Mejoras para las tarjetas del dashboard */
.card.bg-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.card.bg-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.card.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.card.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.card.bg-dark {
    background: linear-gradient(135deg, #343a40 0%, #2c3136 100%) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 58, 64, 0.3);
}

.card.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: #212529 !important; /* Texto negro para mejor contraste */
}

.card.bg-purple {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

/* Mejoras para el contenido de las tarjetas */
.card.text-white .card-title {
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.card.text-white .card-text {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Excepción para tarjetas con fondo claro */
.card.bg-warning .card-title,
.card.bg-warning .card-text {
    color: #212529 !important;
    text-shadow: none;
}

/* Mejoras para botones en tarjetas */
.card .btn-light {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #2c3e50 !important;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: none;
}

.card .btn-light:hover {
    background: #ffffff !important;
    color: #1a252f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Mejoras para la sección de accesos disponibles */
.card.border-info .card-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: #ffffff !important;
    border-bottom: 2px solid #138496;
}

.card.border-info .card-body {
    background: #ffffff;
    color: #2c3e50;
}

.card.border-info .card-body h6 {
    color: #2c3e50 !important;
    font-weight: 600;
}

.card.border-info .card-body .text-muted {
    color: #6c757d !important;
}

.card.border-info .card-body .text-info {
    color: #17a2b8 !important;
}

/* Mejoras para la sección de herramientas de administración */
.card.border-warning .card-header {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #212529 !important;
    border-bottom: 2px solid #e0a800;
}

.card.border-warning .card-body {
    background: #ffffff;
    color: #2c3e50;
}

.card.border-warning .card-body .text-muted {
    color: #6c757d !important;
}

/* Mejoras para las listas de elementos recientes */
.list-group-item {
    border: 1px solid #e9ecef;
    background: #ffffff;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: #f8f9fa;
    border-color: #17a2b8;
    transform: translateX(5px);
}

.list-group-item h6 {
    color: #2c3e50 !important;
    font-weight: 600;
}

.list-group-item p {
    color: #495057 !important;
}

.list-group-item .text-muted {
    color: #6c757d !important;
}

/* Mejoras para los headers de las tarjetas */
.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    color: #2c3e50;
    font-weight: 600;
}

.card-header h5 {
    color: #2c3e50 !important;
    font-weight: 600;
    margin: 0;
}

/* Mejoras para el contenido principal */
.main-content {
    background: #ffffff;
    color: #2c3e50;
}

/* Mejoras para los títulos principales */
.display-4 {
    color: #2c3e50 !important;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.lead {
    color: #34495e !important;
    font-weight: 500;
}

/* Mejoras para las alertas */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mejoras para iconos en el dashboard */
.card .fas,
.card .far,
.card .fab {
    color: inherit;
    margin-right: 8px;
}

/* Mejoras para el texto de información */
.text-muted {
    color: #6c757d !important;
}

/* Mejoras para botones de administración */
.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: 1px solid #e0a800;
    color: #212529;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    border-color: #d39e00;
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Mejoras para el contenedor principal */
.container-fluid {
    background: #ffffff;
}

/* Mejoras para el fondo general */
body {
    background: #f8f9fa;
}

/* Mejoras para las filas */
.row {
    margin-bottom: 1.5rem;
}

/* Mejoras para las columnas */
.col-md-3,
.col-md-4,
.col-md-6,
.col-12 {
    margin-bottom: 1rem;
}

/* Animaciones suaves para las tarjetas */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Mejoras para el responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Estilos personalizados para checkboxes más grandes */
/* Hacer que todos los checkboxes sean 1.25 veces más grandes */
.form-check-input[type="checkbox"],
.form-check-input[type="radio"] {
    width: 1.25em !important;
    height: 1.25em !important;
    transform: scale(1.25);
    margin-top: 0.125em !important;
}

/* Ajustar el espaciado para los labels de los checkboxes */
.form-check {
    padding-left: 1.875em !important;
}

.form-check .form-check-input {
    margin-left: -1.875em !important;
}

/* Ajustar el espaciado para checkboxes reversos */
.form-check-reverse {
    padding-right: 1.875em !important;
    padding-left: 0 !important;
}

.form-check-reverse .form-check-input {
    margin-right: -1.875em !important;
    margin-left: 0 !important;
}

/* Ajustar switches de formulario */
.form-switch {
    padding-left: 3.125em !important;
}

.form-switch .form-check-input {
    width: 2.5em !important;
    height: 1.25em !important;
    margin-left: -3.125em !important;
}

.form-switch.form-check-reverse {
    padding-right: 3.125em !important;
    padding-left: 0 !important;
}

.form-switch.form-check-reverse .form-check-input {
    margin-right: -3.125em !important;
    margin-left: 0 !important;
}

/* Ajustar checkboxes inline */
.form-check-inline {
    margin-right: 1.25rem !important;
}

/* Ajustar validación de formularios */
.input-group > .form-control:not(:focus).is-valid,
.input-group > .form-floating:not(:focus-within).is-valid,
.input-group > .form-select:not(:focus).is-valid,
.input-group > .form-check-input:not(:focus).is-valid {
    width: calc(3rem + calc(1.875em + 0.9375rem)) !important;
}

.input-group > .form-control:not(:focus).is-invalid,
.input-group > .form-floating:not(:focus-within).is-invalid,
.input-group > .form-select:not(:focus).is-invalid,
.input-group > .form-check-input:not(:focus).is-invalid {
    width: calc(3rem + calc(1.875em + 0.9375rem)) !important;
}

/* Ajustar checkboxes en botones */
.btn-check + .btn {
    margin-left: 0.5rem;
}

/* Asegurar que los checkboxes personalizados mantengan el estilo */
input[type="checkbox"]:not(.form-check-input),
input[type="radio"]:not(.form-check-input) {
    width: 1.25em !important;
    height: 1.25em !important;
    transform: scale(1.25);
}