/**
 * Validation Result Styles
 * Comprehensive styling for swap validation UI
 */

/* ==================== Container ==================== */
.validation-result-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0;
    display: none;
}

.validation-result-container.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== BLOCKED Warning ==================== */
.validation-blocked-warning {
    background: #fff3cd;
    border: 3px solid #ffc107;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.blocked-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.blocked-icon {
    font-size: 48px;
    line-height: 1;
}

.blocked-title h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #856404;
}

.blocked-title p {
    margin: 0;
    font-size: 16px;
    color: #856404;
}

.blocked-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.blocked-count {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.blocked-count strong {
    display: block;
    margin-bottom: 10px;
    color: #856404;
}

.blocked-count ul {
    margin: 0;
    padding-left: 20px;
}

.blocked-count li {
    margin: 5px 0;
    color: #856404;
}

.blocked-explanation {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.blocked-explanation h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.blocked-explanation p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #666;
}

.cannot-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cannot-check-list li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
}

.blocked-affected-dates {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.blocked-affected-dates h4 {
    margin: 0 0 12px 0;
    color: #856404;
}

.blocked-solutions {
    margin-bottom: 20px;
}

.blocked-solutions h4 {
    margin: 0 0 15px 0;
    color: #856404;
}

.blocked-solutions ol {
    margin: 0;
    padding-left: 25px;
}

.blocked-solutions li {
    margin: 12px 0;
    line-height: 1.6;
    color: #666;
}

.blocked-solutions strong {
    color: #333;
}

.blocked-solutions small {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 13px;
}

.blocked-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-help,
.btn-contact {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-help {
    background: #007bff;
    color: white;
}

.btn-help:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-contact {
    background: #28a745;
    color: white;
}

.btn-contact:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* ==================== Main Result ==================== */
.validation-main-result {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.validation-main-result.success {
    border-left: 5px solid #28a745;
}

.validation-main-result.error {
    border-left: 5px solid #dc3545;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.result-icon {
    font-size: 48px;
    line-height: 1;
}

.result-text h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #333;
}

.result-text .reliability {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.result-summary {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.result-summary.success {
    background: #d4edda;
    color: #155724;
}

.result-summary p {
    margin: 0 0 10px 0;
}

.result-summary ul {
    margin: 10px 0 0 0;
    padding-left: 25px;
}

.result-summary li {
    margin: 5px 0;
}

.warning-note {
    color: #856404;
    font-weight: 600;
}

/* ==================== Date Pills ==================== */
.date-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.date-pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.date-pill.blocked {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.date-pill.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==================== Errors ==================== */
.validation-errors {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #dc3545;
}

.errors-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-icon {
    font-size: 24px;
}

.errors-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.validation-error {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dee2e6;
}

.validation-error.critical {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.error-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.severity-icon {
    font-size: 24px;
    line-height: 1;
}

.error-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    flex: 1;
}

.error-details {
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.error-details pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.error-dates {
    margin: 15px 0;
}

.error-dates strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.standby-block-info {
    margin: 15px 0;
    padding: 15px;
    background: #fff3cd;
    border-radius: 6px;
    border: 1px solid #ffc107;
}

.standby-block-info h5 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 14px;
}

.standby-block-info ul {
    margin: 0;
    padding-left: 20px;
}

.standby-block-info li {
    margin: 5px 0;
    font-size: 13px;
    color: #856404;
}

.error-recommendation {
    margin: 15px 0;
    padding: 15px;
    background: #d1ecf1;
    border-radius: 6px;
    border: 1px solid #bee5eb;
}

.error-recommendation strong {
    display: block;
    margin-bottom: 8px;
    color: #0c5460;
}

.error-recommendation p {
    margin: 0;
    font-size: 14px;
    color: #0c5460;
    line-height: 1.6;
}

.error-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.error-section small {
    color: #6c757d;
    font-size: 12px;
}

/* ==================== Warnings ==================== */
.validation-warnings {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #ffc107;
}

.warnings-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-icon {
    font-size: 24px;
}

.warnings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.validation-warning {
    background: #fff3cd;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ffc107;
}

.warning-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.warning-header h4 {
    margin: 0;
    font-size: 16px;
    color: #856404;
    flex: 1;
}

.warning-details p {
    margin: 0;
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

/* ==================== Info ==================== */
.validation-info {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #17a2b8;
}

.info-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #17a2b8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    font-size: 24px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    background: #d1ecf1;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #bee5eb;
}

.info-item p {
    margin: 0;
    font-size: 14px;
    color: #0c5460;
    line-height: 1.6;
}

/* ==================== Modal ==================== */
.validator-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 700px;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.blocked-help-content h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
}

.help-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.help-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.help-section h5 {
    margin: 0 0 15px 0;
    color: #007bff;
    font-size: 16px;
}

.help-section ol {
    margin: 0;
    padding-left: 25px;
}

.help-section li {
    margin: 10px 0;
    line-height: 1.6;
    color: #666;
}

.help-section p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #666;
}

.message-template {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.message-template pre {
    margin: 0 0 15px 0;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.btn-copy {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .validation-result-container {
        margin: 20px 10px;
    }
    
    .validation-blocked-warning,
    .validation-main-result,
    .validation-errors,
    .validation-warnings,
    .validation-info {
        padding: 20px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        max-width: 90vw;
        margin: 20px;
    }
    
    .blocked-actions {
        flex-direction: column;
    }
    
    .btn-help,
    .btn-contact {
        width: 100%;
    }
}
