/**
 * Estilos personalizados - Sistema PQR TMSA
 */

/* Tabla de PQR */
.table-pqr th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6c757d;
}

.table-pqr td {
    vertical-align: middle;
}

.table-pqr .radicado {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Cards de estadísticas */
.card-stats {
    transition: transform 0.2s ease-in-out;
}

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

.card-stats .card-title {
    font-size: 2rem;
    font-weight: 700;
}

.card-stats .card-text {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Estados de PQR */
.estado-abierta {
    border-left: 4px solid #0d6efd;
}

.estado-en_proceso {
    border-left: 4px solid #ffc107;
}

.estado-resuelta {
    border-left: 4px solid #198754;
}

.estado-cerrada {
    border-left: 4px solid #6c757d;
}

.estado-vencida {
    background-color: #fff5f5;
}

/* Timeline de seguimiento */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e31837;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e31837;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-date {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Filtros */
.filters-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Responsivo */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.8rem;
    }

    .card-stats .card-title {
        font-size: 1.5rem;
    }
}

/* Botón personalizado TMSA */
.btn-tmsa {
    background-color: #e31837;
    border-color: #e31837;
    color: #fff;
}

.btn-tmsa:hover {
    background-color: #c41530;
    border-color: #c41530;
    color: #fff;
}

.btn-tmsa:focus {
    background-color: #c41530;
    border-color: #c41530;
    box-shadow: 0 0 0 0.25rem rgba(227, 24, 55, 0.5);
}

/* Página de login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.login-card {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.login-logo {
    max-width: 200px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }

    main {
        margin-left: 0 !important;
        padding-top: 0 !important;
    }
}
