/* Sistema de Gestión - Estilos Personalizados */

/* Mejoras de UX */
.cursor-pointer {
    cursor: pointer !important;
}

/* Animaciones suaves */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Estilos para botones de acción */
.btn-action {
    padding: 0.375rem 0.75rem;
    margin: 0 0.125rem;
}

/* Estilos para badges */
.badge-light-primary {
    background-color: rgba(54, 136, 252, 0.1);
    color: #3688fc;
}

.badge-light-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.badge-light-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.badge-light-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.badge-light-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

/* Estilos para indicadores de loading */
.indicator-progress {
    display: none;
}

.btn.loading .indicator-label {
    display: none;
}

.btn.loading .indicator-progress {
    display: inline-block;
}

/* Estilos para el dashboard */
.dashboard-card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

.dashboard-stat {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

/* Estilos para tablas */
.table-hover tbody tr:hover {
    background-color: rgba(54, 136, 252, 0.05);
}

.table th {
    font-weight: 600;
    color: #5e6278;
    border-bottom: 1px solid #e4e6ea;
}

/* Estilos para formularios */
.form-control:focus {
    border-color: #3688fc;
    box-shadow: 0 0 0 0.2rem rgba(54, 136, 252, 0.25);
}

.form-select:focus {
    border-color: #3688fc;
    box-shadow: 0 0 0 0.2rem rgba(54, 136, 252, 0.25);
}

/* Estilos para modales */
.modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Estilos para navegación */
.menu-link {
    transition: all 0.2s ease;
}

.menu-link:hover {
    background-color: rgba(54, 136, 252, 0.1);
    color: #3688fc;
}

.menu-link.active {
    background-color: #3688fc;
    color: white;
}

/* Estilos para alertas personalizadas */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Estilos para estados de tareas */
.task-priority-alta {
    border-left: 4px solid #dc3545;
}

.task-priority-media {
    border-left: 4px solid #ffc107;
}

.task-priority-baja {
    border-left: 4px solid #28a745;
}

/* Estilos para widgets del dashboard */
.widget-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    border-radius: 1rem;
}

.widget-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Estilos para progreso */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e4e6ea;
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Estilos para reportes */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.metric-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-stat {
        font-size: 2rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .card-toolbar {
        margin-top: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Estilos para animaciones de carga */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Mejoras de accesibilidad */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(54, 136, 252, 0.5);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .widget-card {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
        color: white;
    }
    
    .metric-card {
        background: #2d3748;
        color: white;
    }
}

/* Utilidades adicionales */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.border-radius-lg {
    border-radius: 1rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}