/* OCR PDF Tool Styles */

/* Statistics Cards */
.stat-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--bs-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bs-primary);
}

/* Processing Status */
#processingStatus .alert {
    border-left: 4px solid var(--bs-primary);
}

#processingDetail {
    font-style: italic;
}

/* Confidence Bar Colors */
.progress-bar.bg-success {
    background-color: #28a745 !important;
}

.progress-bar.bg-warning {
    background-color: #ffc107 !important;
    color: #000;
}

.progress-bar.bg-danger {
    background-color: #dc3545 !important;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* Extracted Text Area */
#extractedText {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Dark Mode */
[data-bs-theme="dark"] .stat-card {
    background: rgba(30, 34, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .stat-value {
    color: #6ea8fe;
}

[data-bs-theme="dark"] #processingStatus .alert {
    background-color: rgba(13, 110, 253, 0.15);
    border-color: rgba(13, 110, 253, 0.3);
    border-left-color: var(--bs-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .stat-value {
        font-size: 1.25rem;
    }

    .stat-card {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    #extractedText {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 0.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }
}
