/* PQR Radicado Lookup - Estilos Profesionales */

.pqr-radicado-lookup-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

/* Header */
.pqr-lookup-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.pqr-lookup-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pqr-lookup-icon {
    font-size: 32px;
    color: #3498db;
}

.pqr-lookup-description {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Form */
.pqr-lookup-form-container {
    margin-bottom: 30px;
}

.pqr-lookup-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.pqr-lookup-input-group {
    margin-bottom: 0;
}

.pqr-lookup-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

.pqr-lookup-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.pqr-lookup-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.pqr-lookup-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.pqr-lookup-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 14px;
}

.pqr-lookup-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.pqr-lookup-btn:active {
    transform: translateY(0);
}

/* Loading */
.pqr-lookup-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.pqr-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.pqr-results-container {
    margin-top: 30px;
}

.pqr-results-header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 10px;
}

.pqr-results-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
}

.pqr-results-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
}

.pqr-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Result Item */
.pqr-result-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pqr-result-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pqr-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.pqr-result-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pqr-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pqr-badge-radicado {
    background: #3498db;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.pqr-badge-radicado-large {
    background: #3498db;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 16px;
}

.pqr-badge-estado {
    color: white;
}

.pqr-estado-pendiente { background: #f39c12; }
.pqr-estado-en-proceso { background: #3498db; }
.pqr-estado-resuelto { background: #27ae60; }
.pqr-estado-cerrado { background: #95a5a6; }
.pqr-estado-cancelado { background: #e74c3c; }

.pqr-badge-tipo {
    background: #dc3545;
    color: white;
}

.pqr-result-date {
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pqr-result-content {
    margin-bottom: 20px;
}

.pqr-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.pqr-result-preview {
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 10px;
}

.pqr-result-product {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pqr-product-code {
    color: #6c757d;
    font-family: monospace;
}

.pqr-result-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.pqr-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
}

.pqr-btn-details {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.pqr-btn-details:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Modal */
.pqr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.pqr-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pqr-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.pqr-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pqr-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pqr-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.pqr-modal-body {
    padding: 25px;
}

.pqr-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.pqr-detail-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.pqr-detail-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pqr-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.pqr-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pqr-detail-item strong {
    color: #495057;
    font-size: 14px;
}

.pqr-detail-item span {
    color: #6c757d;
    font-size: 14px;
}

.pqr-detail-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    line-height: 1.6;
    color: #495057;
}

.pqr-response-section {
    border-left-color: #27ae60;
}

.pqr-response-content {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.pqr-no-response-section {
    border-left-color: #f39c12;
}

.pqr-no-response {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.pqr-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.pqr-btn-secondary {
    background: #6c757d;
    color: white;
}

.pqr-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.pqr-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.pqr-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .pqr-radicado-lookup-container {
        margin: 10px;
        padding: 15px;
        border-radius: 8px;
    }
    
    .pqr-lookup-input-wrapper {
        flex-direction: column;
    }
    
    .pqr-lookup-btn {
        justify-content: center;
    }
    
    .pqr-result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pqr-result-actions {
        justify-content: center;
    }
    
    .pqr-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .pqr-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .pqr-modal-footer {
        flex-direction: column;
    }
}
