/**
 * Report Lookup System - Modern Design (scoped: rls-)
 * Version: 2.0.0
 */

.rls-container,
.rls-container *,
.rls-container input,
.rls-container button,
.rls-container label,
.rls-container a,
.rls-container h2,
.rls-container h3,
.rls-container p,
.rls-container span {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.rls-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    box-sizing: border-box;
}

.rls-verify-card {
    background: #e20a0a;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(226, 10, 10, 0.4);
    color: white;
    animation: rls-slideInUp 0.6s ease;
}

@keyframes rls-slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rls-card-header {
    text-align: center;
    margin-bottom: 35px;
}

.rls-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.rls-card-icon svg {
    color: white;
}

.rls-card-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.rls-subtitle {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.5;
}

.rls-verify-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.rls-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rls-input-group label {
    font-size: 14px;
    font-weight: 600;
    color: white;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rls-input-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.rls-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.rls-input-group input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 15px 15px 15px 45px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rls-input-group input:focus {
    outline: none;
    border-color: #ffcdd2;
    box-shadow: 0 4px 20px rgba(226, 10, 10, 0.25);
    transform: translateY(-2px);
}

.rls-input-group input::placeholder {
    color: #999;
}

.rls-verify-btn {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #e20a0a;
    border: none;
    border-radius: 12px;
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(226, 10, 10, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rls-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(226, 10, 10, 0.35);
}

.rls-verify-btn:active {
    transform: translateY(0);
}

.rls-verify-btn svg {
    width: 20px;
    height: 20px;
}

.rls-loading {
    text-align: center;
    padding: 50px 20px;
    animation: rls-fadeIn 0.3s ease;
}

@keyframes rls-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rls-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ffebee;
    border-top: 4px solid #e20a0a;
    border-radius: 50%;
    animation: rls-spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.rls-loading p {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.rls-results-wrap {
    margin-top: 30px;
    animation: rls-slideInUp 0.5s ease;
}

.rls-results-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.rls-results-header {
    background: linear-gradient(135deg, #e20a0a 0%, #c40808 50%, #e20a0a 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rls-results-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.rls-close-results {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rls-close-results:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.rls-close-results svg {
    color: white;
}

.rls-results-body {
    padding: 30px;
}

.rls-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rls-details .rls-detail-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.rls-details .rls-detail-row:last-child {
    border-bottom: none;
}

.rls-details .rls-detail-row:hover {
    background: #fff5f5;
}

.rls-details .rls-detail-label {
    font-weight: 600;
    color: #e20a0a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
}

.rls-details .rls-detail-value {
    color: #333;
    font-size: 16px;
    flex: 1;
    min-width: 0;
}

.rls-details .rls-detail-row-actions .rls-detail-label {
    align-self: flex-start;
    padding-top: 4px;
}

.rls-details .rls-detail-row-actions .rls-action-btns {
    flex: 1;
}

.rls-status-verified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.rls-status-verified svg {
    width: 20px;
    height: 20px;
}

.rls-action-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rls-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rls-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.rls-btn-success {
    background: linear-gradient(135deg, #e20a0a 0%, #c40808 100%);
    color: white;
}

.rls-btn svg {
    width: 18px;
    height: 18px;
}

.rls-error-wrap {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    animation: rls-shake 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes rls-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.rls-error-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e20a0a 0%, #e20a0a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rls-error-icon svg {
    color: white;
    width: 35px;
    height: 35px;
}

.rls-error-text {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.6;
    white-space: pre-line;
    text-align: center;
}

.rls-retry-btn {
    background: linear-gradient(135deg, #e20a0a 0%, #e20a0a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rls-retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 10, 10, 0.4);
}

.rls-pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rls-fadeIn 0.3s ease;
}

.rls-pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.rls-pdf-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: rls-scaleIn 0.3s ease;
}

@keyframes rls-scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.rls-pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #e0e0e0;
    background: #f9f9f9;
    border-radius: 20px 20px 0 0;
}

.rls-pdf-title {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 700;
}

.rls-pdf-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rls-pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e20a0a 0%, #e20a0a 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rls-pdf-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226, 10, 10, 0.3);
}

.rls-pdf-close {
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.rls-pdf-close:hover {
    background: #f44336;
    border-color: #f44336;
    transform: rotate(90deg);
}

.rls-pdf-close:hover .rls-pdf-icon,
.rls-pdf-close:hover svg {
    color: white;
    stroke: white;
}
.rls-pdf-download .rls-pdf-icon,
.rls-pdf-close .rls-pdf-icon {
    flex-shrink: 0;
}

.rls-pdf-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.rls-pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.rls-pdf-loading.rls-pdf-loading-done {
    opacity: 0;
    pointer-events: none;
}

.rls-pdf-loading .rls-pdf-spinner {
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #e20a0a;
    animation: rls-spin 1s ease-in-out infinite;
    margin: 0 auto 15px;
}

.rls-pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

@media (max-width: 768px) {
    .rls-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .rls-verify-card {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .rls-card-header h2 {
        font-size: 24px;
    }
    
    .rls-card-icon {
        width: 60px;
        height: 60px;
    }
    
    .rls-input-group input {
        font-size: 14px;
        padding: 13px 13px 13px 42px;
        width: 100%;
        min-width: 0;
    }
    
    .rls-verify-btn {
        font-size: 14px;
        padding: 14px 25px;
        width: 100%;
    }
    
    .rls-results-card {
        border-radius: 15px;
    }
    
    .rls-results-header {
        padding: 20px;
    }
    
    .rls-results-header h3 {
        font-size: 18px;
    }
    
    .rls-results-body {
        padding: 20px;
    }
    
    .rls-details .rls-detail-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    
    .rls-details .rls-detail-label {
        min-width: 0;
    }
    
    .rls-details .rls-detail-row-actions .rls-action-btns {
        width: 100%;
    }
    
    .rls-action-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .rls-btn {
        width: 100%;
        justify-content: center;
    }
    
    .rls-pdf-content {
        width: 95%;
        height: 95vh;
        border-radius: 15px;
    }
    
    .rls-pdf-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .rls-pdf-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .rls-verify-card {
        padding: 25px 15px;
    }
    
    .rls-input-group input {
        padding: 12px 12px 12px 40px;
        font-size: 16px;
    }
    
    .rls-input-icon {
        left: 12px;
    }
}

@media print {
    .rls-verify-card,
    .rls-loading,
    .rls-error-wrap,
    .rls-pdf-header,
    .rls-close-results {
        display: none;
    }
    
    .rls-results-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}