.ocr-file-upload-section {
    margin-bottom: 10px;
}

.ocr-file-upload-label {
    display: block;
    cursor: pointer;
}

.ocr-file-upload-area {
    border: 2px dashed black;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ocr-file-upload-area:hover {
    background: #f0f0f0;
}

.ocr-file-upload-area.drag-over {
    background: #e8e8e8;
    border-style: solid;
}

.ocr-upload-icon {
    font-size: 40px;
    color: #333;
}

.ocr-upload-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ocr-upload-primary-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.ocr-upload-secondary-text {
    font-size: 13px;
    color: #666;
}

.ocr-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: 2px solid black;
    margin-top: 8px;
    background: #f8f8f8;
}

.ocr-file-name {
    font-weight: 500;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ocr-file-size {
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

.ocr-remove-file-btn {
    background: none;
    color: #333;
    border: 2px solid black;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 1px 1px;
    flex-shrink: 0;
}

.ocr-remove-file-btn:hover {
    background: #eee;
}

.ocr-file-preview {
    margin-top: 10px;
    border: 2px solid black;
    background: #f8f8f8;
    text-align: center;
}

.ocr-preview-image {
    max-width: 100%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
}

.ocr-preview-pdf {
    display: block;
    width: 100%;
    height: 500px;
    border: none;
}

.language-selector-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.language-selector {
    width: 100%;
    padding: 5px;
    border: 2px solid black;
    font-size: 14px;
    color: black;
    background-color: white;
    text-align: center;
    font-weight: 600;
    box-shadow: 1px 1px;
}

.ocr-input-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
    margin-bottom: 25px;
}

.ocr-input-controls button[type='submit'] {
    box-shadow: 3px 3px;
}

.ocr-input-controls button[type='submit']:disabled {
    background-color: lightgray;
    cursor: not-allowed;
}

.ocr-result-section {
    border: 2px solid black;
    margin-top: 10px;
}

.ocr-result-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f0f0f0;
    border-bottom: 2px solid black;
    font-weight: 500;
    font-size: 14px;
}

.ocr-copy-btn {
    font-size: 14px;
    padding: 5px 7px;
    box-shadow: 1px 1px;
}

.ocr-result-content {
    padding: 15px;
    background: white;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 18px;
    line-height: 1.5;
}


@media (max-width: 768px) {
    .ocr-file-upload-area {
        padding: 25px 15px;
    }

    .ocr-upload-icon {
        font-size: 32px;
    }

    .ocr-upload-primary-text {
        font-size: 15px;
    }
}
