body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.upload-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2rem;
}

.file-upload {
    flex: 1 1 300px;
    padding: 1rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
}

.file-upload h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.preview {
    margin-top: 1rem;
    min-height: 100px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.secondary-button {
    background-color: #7f8c8d;
    margin-top: 0.5rem;
}

.secondary-button:hover {
    background-color: #95a5a6;
}

.status-area {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.progress-bar {
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #2ecc71;
    width: 0%;
    transition: width 0.3s ease;
}

.result-area {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.debug-area {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.debug-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.debug-image-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    width: calc(50% - 10px);
    background-color: white;
}

.debug-image-container h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.debug-image {
    max-width: 100%;
    height: auto;
    display: block;
}

#extractedDataDisplay {
    width: 100%;
    max-height: 400px;
    overflow: auto;
    background-color: #f8f9fa;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.4;
}

.hidden {
    display: none;
}

.download-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.download-button:hover {
    background-color: #2ecc71;
}

.secondary-download-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #95a5a6;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: normal;
    cursor: pointer;
}

.secondary-download-button:hover {
    background-color: #7f8c8d;
}

/* Add styling for info-panel */
.info-panel {
    flex: 1;
    padding: 20px;
    margin: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.info-panel h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
}

.info-content {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.info-content p {
    margin: 0;
    line-height: 1.5;
    color: #555;
} 