/* Header Verification Styles */

/* Hide preprocessing section initially when verification is active */
#step4.has-verification #preprocSection {
    display: none;
}

.header-verification-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.verification-header {
    text-align: center;
    margin-bottom: 2rem;
}

.verification-header h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.verification-header .text-muted {
    font-size: 0.95rem;
}

.verification-controls {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.verification-progress {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.verification-results {
    margin-top: 2rem;
}

.results-summary {
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.stat-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.stat-card.stat-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.stat-card.stat-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.stat-icon {
    font-size: 2rem;
  
    margin-bottom: 0.5rem;
}

.stat-card.stat-success .stat-icon {
    color: #28a745;
}

.stat-card.stat-warning .stat-icon {
    color: #ffc107;
}

.stat-card.stat-info .stat-icon {
    color: #17a2b8;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.pages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.page-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s;
}

.page-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.page-card-warning {
    border-color: #ffc107;
    background: #fffbf0;
}

.page-card-error {
    border-color: #dc3545;
    background: #fff5f5;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.page-title i {
    color: #6c757d;
}

.page-status .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.page-content {
    font-size: 0.95rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6c757d;
    font-weight: 500;
}

.info-label i {
    margin-right: 0.25rem;
}

.info-value {
    color: #2c3e50;
    font-weight: 600;
}

.similarities-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.similarities-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.similarities-list li {
    padding: 0.5rem;
    margin: 0.5rem 0;
    background: #fff;
    border-radius: 6px;
    border-left: 3px solid #6c757d;
}

.similarity-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.similarity-high {
    background: #dc3545;
    color: #fff;
}

.similarity-medium {
    background: #ffc107;
    color: #000;
}

.similarity-low {
    background: #17a2b8;
    color: #fff;
}

.verification-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.verification-actions .btn {
    min-width: 250px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Alert overrides */
.page-content .alert {
    margin-bottom: 1rem;
    padding: 0.75rem;
}

.page-content .alert i {
    margin-right: 0.5rem;
}

.page-content .alert small {
    display: block;
    margin-top: 0.25rem;
}

/* Verification Summary Styles */
.verification-summary {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.summary-header h4 {
    color: #28a745;
    margin-bottom: 0.5rem;
}

.summary-header p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    min-width: 100px;
}

.stat-item.stat-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.stat-item.stat-success {
    background: #d4edda;
    border: 2px solid #28a745;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-item.stat-warning .stat-number {
    color: #856404;
}

.stat-item.stat-success .stat-number {
    color: #155724;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.summary-actions {
    margin-top: 2rem;
}

.summary-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Warning Badges in Grid */
.processed-warnings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.warning-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    line-height: 1.3;
}

.warning-badge i {
    flex-shrink: 0;
}

.warning-error {
    background: #fee;
    color: #dc3545;
    border: 1px solid #dc3545;
    font-weight: 600;
}

.warning-info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #1976d2;
}

.warning-duplicate {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    font-weight: 600;
}

/* User edited state - green background */
.warning-edited {
    background: #d1f4e0 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
}

/* Admin edited state - purple background */
.warning-admin-edited {
    background: #e9d5ff !important;
    border-color: #a855f7 !important;
    color: #581c87 !important;
}

/* Edit metadata button */
.btn-edit-metadata {
    background: transparent;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.btn-edit-metadata:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.btn-edit-metadata:active {
    transform: scale(0.95);
}

.btn-edit-metadata i {
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .pages-list {
        grid-template-columns: 1fr;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-row {
        flex-direction: column;
        gap: 0.25rem;
    }
}

