/**
 * Estilos para el Banner de Seguimiento de Reportes
 * Sistema de Reporte Ciudadano - Los Cabos
 */

/* Banner Principal */
.tracking-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideDown 0.4s ease-out;
    border-bottom: 3px solid #B8A88A;
}

.tracking-banner.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Banner Content */
.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Banner Simple (1 reporte) */
.banner-simple .banner-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.banner-icon {
    font-size: 48px;
    line-height: 1;
}

.banner-info {
    flex: 1;
}

.banner-info h3 {
    color: #28a745;
    font-size: 20px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.banner-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.folio-badge {
    background: linear-gradient(135deg, #B8A88A 0%, #C9BDA4 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

.estado-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
}

.estado-badge.estado-pendiente {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.estado-badge.estado-en_proceso {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.estado-badge.estado-resuelto {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.estado-badge.estado-rechazado {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.banner-titulo {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
    font-weight: 500;
}

.banner-fecha {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.banner-nota {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 12px 15px;
    margin: 10px 0;
    font-style: italic;
    color: #004085;
    border-radius: 4px;
}

/* Acciones del Banner */
.banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 10px 18px;
    border-radius: 8px;
    border: 2px solid;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
    font-family: inherit;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-pdf {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-pdf:hover {
    background: #dc3545;
    color: white;
}

.btn-refresh {
    border-color: #17a2b8;
    color: #17a2b8;
}

.btn-refresh:hover {
    background: #17a2b8;
    color: white;
}

.btn-primary {
    border-color: #B8A88A;
    background: linear-gradient(135deg, #B8A88A 0%, #C9BDA4 100%);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(184, 168, 138, 0.4);
}

.btn-close-small {
    border-color: #6c757d;
    color: #6c757d;
    padding: 8px 14px;
}

.btn-close-small:hover {
    background: #6c757d;
    color: white;
}

/* Banner Expandible */
.banner-expandible .banner-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.banner-expandible .banner-summary:hover {
    background: #e9ecef;
}

.banner-expandible .banner-summary strong {
    color: #333;
    font-size: 16px;
}

.banner-expandible .banner-summary p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

.btn-expand {
    background: #B8A88A;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-expand:hover {
    background: #A0826D;
}

/* Lista de Reportes */
.banner-list {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.banner-list.hidden {
    display: none;
}

.reporte-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.reporte-item:last-child {
    border-bottom: none;
}

.reporte-item:hover {
    background: #f8f9fa;
}

.reporte-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.folio-small {
    font-weight: 600;
    color: #B8A88A;
    font-size: 13px;
    min-width: 90px;
}

.estado-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.estado-dot.estado-pendiente {
    background: #ffc107;
}

.estado-dot.estado-en_proceso {
    background: #17a2b8;
}

.estado-dot.estado-resuelto {
    background: #28a745;
}

.estado-dot.estado-rechazado {
    background: #dc3545;
}

.reporte-titulo-small {
    color: #333;
    font-size: 14px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reporte-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* Banner Success (Resuelto) */
.banner-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.banner-success .banner-icon {
    color: #28a745;
}

.banner-success h3 {
    color: #155724;
}

/* Encuesta de Satisfacción */
.encuesta-satisfaccion {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 2px solid #28a745;
}

.encuesta-satisfaccion p {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 15px;
}

.encuesta-botones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-encuesta {
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
    flex: 1;
    min-width: 120px;
}

.btn-encuesta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-excelente {
    border-color: #28a745;
    color: #28a745;
}

.btn-excelente:hover {
    background: #28a745;
    color: white;
}

.btn-regular {
    border-color: #ffc107;
    color: #856404;
}

.btn-regular:hover {
    background: #ffc107;
    color: #856404;
}

.btn-mala {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-mala:hover {
    background: #dc3545;
    color: white;
}

/* Banner con Link */
.banner-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-link .banner-info strong {
    display: block;
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.banner-link .banner-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-content {
        padding: 15px;
    }

    .banner-simple .banner-header {
        flex-direction: column;
        gap: 15px;
    }

    .banner-icon {
        font-size: 36px;
    }

    .banner-info h3 {
        font-size: 18px;
    }

    .banner-meta {
        flex-direction: column;
        gap: 8px;
    }

    .banner-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        text-align: center;
    }

    .banner-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-link .banner-actions {
        width: 100%;
    }

    .encuesta-botones {
        flex-direction: column;
    }

    .btn-encuesta {
        width: 100%;
    }

    .banner-expandible .banner-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-expand {
        width: 100%;
    }

    .reporte-info {
        flex-wrap: wrap;
    }

    .reporte-titulo-small {
        width: 100%;
    }
}

/* Animaciones */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.banner-content.updating {
    animation: pulse 1s ease-in-out;
}

/* Scrollbar personalizado para lista de reportes */
.banner-list::-webkit-scrollbar {
    width: 8px;
}

.banner-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.banner-list::-webkit-scrollbar-thumb {
    background: #B8A88A;
    border-radius: 4px;
}

.banner-list::-webkit-scrollbar-thumb:hover {
    background: #A0826D;
}
