pre {
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.card {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#extractedText, #metadata {
    font-family: monospace;
    font-size: 0.9rem;
}

/* Progress Bar Styles */
.progress {
    height: 1.5rem;
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-border-color);
}

.progress-bar {
    background-color: var(--bs-primary);
}

/* Alert Animations */
.alert.fade {
    transition: opacity 0.3s linear;
}

.alert.show {
    opacity: 1;
}

/* Results Animation */
#result.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для структурированного PDF-контента */
.pdf-header {
    color: var(--bs-primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 0.5rem;
}

.pdf-date {
    color: var(--bs-secondary);
    margin-bottom: 0.5rem;
}

.pdf-address {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.pdf-table-header {
    background-color: var(--bs-primary);
    color: var(--bs-light);
    padding: 0.5rem;
    border-radius: 4px 4px 0 0;
    margin-top: 1rem;
    font-weight: bold;
}

.pdf-table-row {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 0.5rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.pdf-total {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-weight: bold;
    border-radius: 0 0 4px 4px;
}

.pdf-text {
    margin: 0.5rem 0;
}

/* Стили для метаданных */
.metadata-section {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
}

.metadata-title {
    margin-bottom: 0.5rem;
    color: var(--bs-primary);
    font-weight: bold;
}

.metadata-content {
    padding-left: 1rem;
}

.structure-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.structure-item {
    padding: 0.5rem;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
}

.structure-header {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--bs-info);
}

.structure-content {
    padding-left: 1rem;
    font-size: 0.9rem;
}

/* Стили для анализа изображений */
.image-analysis-item {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--bs-primary);
}

.image-analysis-item strong {
    color: var(--bs-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.image-analysis-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}