/* Archivo CSS principal para TAREP */
/* Este archivo fue creado para resolver errores 404 en la consola */

/* Estilos base generales */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Contenedor principal */
.main {
    min-height: 100vh;
}

/* Estilos para el loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
}

/* Estilos para notificaciones */
.notification-btn {
    position: relative;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Estilos para formularios */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilos para alertas */
.alert {
    border-radius: 0.375rem;
}

/* Utilidades adicionales */
.d-none {
    display: none !important;
}

/* Estilos para dropdowns de proyectos/áreas para limitar su expansión */
select[id^="id_proyecto"], 
select[id="id_proyecto"],
#id_proyecto {
    max-height: 200px;
    overflow-y: auto;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Limitar el ancho de las opciones largas en dropdowns */
select[id^="id_proyecto"] option,
select[id="id_proyecto"] option,
#id_proyecto option {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px 10px;
}

/* Estilos específicos para los selects en formularios de programación */
.form-control.proyecto-select {
    max-height: 150px;
    overflow-y: auto;
}

/* Mejorar la apariencia del dropdown cuando tiene scroll */
select[id^="id_proyecto"]::-webkit-scrollbar,
select[id="id_proyecto"]::-webkit-scrollbar {
    width: 8px;
}

select[id^="id_proyecto"]::-webkit-scrollbar-track,
select[id="id_proyecto"]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

select[id^="id_proyecto"]::-webkit-scrollbar-thumb,
select[id="id_proyecto"]::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

select[id^="id_proyecto"]::-webkit-scrollbar-thumb:hover,
select[id="id_proyecto"]::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.text-primary {
    color: #0d6efd !important;
}

/* Estilos específicos para la página de login */
.custom-font {
    font-family: 'Pacifico', cursive;
}

.login-page-body {
    font-family: 'Inter', sans-serif;
}

/* Contenedor de autenticación con imagen de fondo manejada desde el template */
.bg-auth {
    position: relative;
    overflow: hidden;
}

/* Imagen de fondo absoluta - se muestra sin filtros */
.bg-auth-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Contenido sobre la imagen */
.bg-auth-content {
    position: relative;
    z-index: 1;
}

.login-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.letter-b {
    color: #10b981;
}

.input-focus:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

/* Estilos para el Selector de Vista Dropdown */
.selector-vista-dropdown {
    display: flex;
    align-items: center;
}

.selector-vista-dropdown .dropdown-toggle {
    background-color: #17a2b8;
    border: 1px solid #17a2b8;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.selector-vista-dropdown .dropdown-toggle:hover,
.selector-vista-dropdown .dropdown-toggle:focus,
.selector-vista-dropdown .dropdown-toggle.show {
    background-color: #138496;
    border-color: #138496;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.selector-vista-dropdown .dropdown-menu {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 200px;
}

.selector-vista-dropdown .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selector-vista-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.selector-vista-dropdown .dropdown-item.active {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.selector-vista-dropdown .dropdown-item i.fas {
    width: 16px;
    text-align: center;
}

.selector-vista-dropdown .dropdown-divider {
    margin: 8px 0;
}

/* Responsividad */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .selector-vista-dropdown .dropdown-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .selector-vista-dropdown .dropdown-menu {
        min-width: 180px;
    }
    
    .selector-vista-dropdown .dropdown-item {
        padding: 8px 12px;
        font-size: 13px;
    }
}
