/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.legal-validator-notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 5px solid;
}

.legal-validator-notice.valid {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.legal-validator-notice.warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.legal-validator-notice.invalid {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.legal-validator-badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    margin-bottom: 15px;
}

.legal-validator-badge.valid {
    background-color: #28a745;
    color: white;
}

.legal-validator-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.legal-validator-summary h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.legal-validator-summary ul {
    margin-left: 20px;
    padding-left: 0;
}

/* Ensure validation results container is visible */
#validation-results-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 30px;
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
    position: relative;
}

/* Loading indicator styles */
.validation-loading {
    display: none;
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    z-index: 100;
    position: relative;
    border: 1px solid #e0e0e0;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-message {
    margin-top: 15px;
    font-weight: bold;
}

/* Enhanced validation results styling */
.legal-validator-results {
    padding: 20px;
}

.legal-validator-score {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.score-circle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    color: white;
    font-weight: bold;
}

.legal-validator-score.valid .score-circle {
    background-color: #28a745;
}

.legal-validator-score.warning .score-circle {
    background-color: #ffc107;
}

.legal-validator-score.invalid .score-circle {
    background-color: #dc3545;
}

.score-number {
    font-size: 24px;
    line-height: 1;
}

.issue-item {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid;
}

.issue-item.warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
}

.issue-item.error {
    background-color: #f8d7da;
    border-left-color: #dc3545;
}

.issue-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.issue-icon {
    margin-right: 10px;
}

.issue-title {
    font-weight: bold;
}

.issue-details {
    margin-left: 25px;
}

.issue-location {
    background-color: rgba(0,0,0,0.05);
    padding: 10px;
    margin: 10px 0;
    border-radius: 3px;
    font-family: monospace;
    white-space: pre-wrap;
}

.issue-recommendation {
    margin-top: 10px;
    font-style: italic;
}
