/* Estilos base del navbar */
.navbar {
    border-radius: 0;
    padding: 0.5rem 1rem;
}

/* Estilos para el menú desplegable */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0.375rem;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #fff;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
    border-left-color: #fff;
}

/* Contenedor principal */
.contenido {
    margin-top: 80px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    text-align: center;
    border: 0;
}

/* Estilos de validación */
.ng-invalid input.ng-invalid,
.ng-invalid select.ng-invalid {
    border: 1px solid #dc3545;
}

.messages {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

form.ng-submitted input.ng-invalid,
form input.ng-invalid.ng-touched {
    border-color: #dc3545;
}

/* Estilos responsivos */
@media (max-width: 640px) {
    .hide {
        display: none !important;
    }
}

/* Estilos de etiquetas */
label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    color: #495057;
}

/* Estilos de botones */
.buttom-style {
    color: #dc3545;
    font-size: 1.25rem;
}

.buttom-style-delete {
    color: #dc3545;
}

/* Estilos móviles */
@media (max-width: 768px) {
    /* Modal */
    .modal-dialog {
        margin: 0;
        width: 100%;
        height: 100%;
        padding: 0;
    }
  
    
    /* Tabla */
    .table-responsive {
        border: none;
        margin-bottom: 0;
    }
    
    .table {
        margin-bottom: 0;
    }
    
    .table > thead > tr > td {
        background: #dc3545 !important;
        color: #fff !important;
        font-size: 0.875rem;
        text-align: center;
        padding: 0.75rem;
    }
    
    
    
    .form-control:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    }
    
    /* Botones */
    .btn-primary {
        background: #dc3545;
        border-color: #dc3545;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        margin-top: 0.5rem;
    }
    
    .btn-primary:hover,
    .btn-primary:focus {
        background: #bb2d3b;
        border-color: #b02a37;
    }
}

/* Estilos específicos de modales */
#modEditarDatos .modal-dialog {
    width: 95%;
    margin: 1rem auto;
}

#modEditarDatos .input-group {
    width: 100%;
}

#modEditarDatos .form-control {
    height: 2.5rem;
    font-size: 0.875rem;
}

#modEditarDatos .input-group-text {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
}



/* Estilos de formularios mejorados */
.form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    color: #495057;
}

.form-control {
    height: 2.5rem;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    box-shadow: none;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Estilos de botones actualizados */
.btn {
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #dc3545;
    border-color: #dc3545;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #bb2d3b;
    border-color: #b02a37;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Espaciado y utilidades */
.p-4 {
    padding: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-end {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* Estilos de modal window */
.app-modal-window .modal-dialog {
    width: 100%;
}

/* Estilos de altura */
.tall {
    height: 3.75rem;
}

/* Elemento fijo */
#movido {
    position: fixed;
}

/* Estilos específicos para el menú */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
}

.navbar-dark .navbar-nav .dropdown-menu {
    background-color: #dc3545;
    border: none;
}

.navbar-dark .navbar-nav .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .dropdown-item:hover,
.navbar-dark .navbar-nav .dropdown-item:focus {
    background-color: #bb2d3b;
    color: #fff;
}

/* Estilo para el logo de texto */
.logo-text {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(45deg, #ff4b52, #dc3545);
    border-radius: 0.375rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    display: inline-block;
    margin: -0.25rem 0;
}