/**
 * URGE Pre-submission Self-Check – report modal styles.
 * Minimal, clear; matches existing URGE/DataverseNO look.
 */

.urge-precheck-modal .modal-content {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.urge-precheck-modal .modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.urge-precheck-modal .modal-title {
    font-weight: 600;
    color: #212529;
}

.urge-precheck-modal .modal-body {
    padding: 1.25rem 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.urge-precheck-modal .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Report container */
.urge-precheck-report {
    font-size: 0.9375rem;
    color: #212529;
}

.urge-precheck-header {
    margin-bottom: 1rem;
}

.urge-precheck-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0b5ed7;
    margin-bottom: 0.25rem;
}

.urge-precheck-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Overall score */
.urge-precheck-score-wrap {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.urge-precheck-score-wrap.score-excellent {
    background: #d1e7dd;
    border-color: #198754;
}

.urge-precheck-score-wrap.score-good {
    background: #cff4fc;
    border-color: #0aa2c0;
}

.urge-precheck-score-wrap.score-improve {
    background: #fff3cd;
    border-color: #ffc107;
}

.urge-precheck-score-wrap.score-significant {
    background: #ffe5d0;
    border-color: #fd7e14;
}

.urge-precheck-score-wrap.score-notready {
    background: #f8d7da;
    border-color: #dc3545;
}

.urge-precheck-score-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #495057;
    margin-bottom: 0.25rem;
}

.urge-precheck-score-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.urge-precheck-score-status {
    font-size: 0.95rem;
    margin-top: 0.25rem;
    font-weight: 600;
}

.urge-precheck-bar-overall {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.urge-precheck-bar-inner {
    height: 100%;
    background: #0b5ed7;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Message when form is fully empty (no score shown) */
.urge-precheck-empty-message {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #495057;
    font-size: 0.95rem;
}

/* Section bars */
.urge-precheck-sections {
    margin-bottom: 1rem;
}

.urge-precheck-section-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.urge-precheck-section-name {
    flex: 0 0 220px;
    font-weight: 600;
    color: #495057;
}

.urge-precheck-bar-wrap {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.urge-precheck-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.urge-precheck-bar.urge-bar-good {
    background: #198754;
}

.urge-precheck-bar.urge-bar-mid {
    background: #ffc107;
}

.urge-precheck-bar.urge-bar-low {
    background: #dc3545;
}

.urge-precheck-section-score {
    flex: 0 0 36px;
    text-align: right;
    font-weight: 600;
    color: #212529;
}

/* Summary */
.urge-precheck-summary {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

/* Details */
.urge-precheck-details-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #212529;
}

.urge-precheck-detail-block {
    margin-bottom: 0.5rem;
}

.urge-precheck-detail-toggle {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    font-weight: 500;
    color: #0b5ed7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.urge-precheck-detail-toggle:hover {
    background: #e7f1ff;
    border-color: #b6d4fe;
}

.urge-precheck-detail-toggle:not(.collapsed) {
    background: #e7f1ff;
    border-color: #0b5ed7;
}

.urge-precheck-issue-count {
    font-weight: 400;
    color: #6c757d;
}

.urge-precheck-detail-body {
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    background: #fafbfc;
}

.urge-precheck-issue {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.urge-precheck-issue:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.urge-precheck-issue-head {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.urge-precheck-sev {
    flex-shrink: 0;
    font-size: 0.75rem;
}

.urge-sev-error {
    color: #dc3545;
}

.urge-sev-warning {
    color: #ffc107;
}

.urge-sev-info {
    color: #0dcaf0;
}

.urge-precheck-issue-fix {
    font-size: 0.85rem;
    color: #495057;
    margin-left: 1.25rem;
}

/* Keywords / metadata enrichment block */
.urge-precheck-keywords-block {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: #f0f7ff;
    border: 1px solid #cce5ff;
    border-radius: 8px;
}

.urge-precheck-keywords-title {
    font-weight: 600;
    color: #0b5ed7;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.urge-precheck-keywords-desc {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.urge-precheck-keywords-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.urge-precheck-keywords-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #fff;
    color: #212529;
    font-family: inherit;
}

.urge-precheck-keywords-input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.urge-precheck-keywords-copy {
    flex-shrink: 0;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
}

.urge-precheck-keywords-copy:hover {
    background: #e7f1ff;
    border-color: #0b5ed7;
    color: #0b5ed7;
}

.urge-precheck-keywords-copy .bi {
    font-size: 1.1rem;
}

/* Footer note */
.urge-precheck-footer-note {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.8rem;
    color: #6c757d;
}

.urge-precheck-footer-note a {
    color: #0b5ed7;
}

/* Button: distinct teal/blue */
.btn-urge-precheck {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #0aa2c0;
    background: #0dcaf0;
    color: #055160;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-urge-precheck:hover {
    background: #31d2f2;
    border-color: #0aa2c0;
    color: #032830;
}

.btn-urge-precheck .bi {
    font-size: 1.05rem;
    margin-right: 0.35rem;
}
