* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    padding: 30px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

h2 {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.upload-section {
    text-align: center;
    margin-bottom: 30px;
}

.upload-section input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    width: 250px;
}

.upload-section button {
    padding: 10px 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.upload-section button:hover {
    background: #0056b3;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-weight: bold;
    color: #333;
}

.controls select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

#processBtn {
    padding: 10px 25px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

#processBtn:hover:not(:disabled) {
    background: #1e7e34;
}

#processBtn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.images-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (min-width: 1200px) {
    .images-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

.image-card {
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.image-card h3 {
    margin-bottom: 12px;
    color: #333;
    font-size: 0.9rem;
}

.image-placeholder {
    min-height: 180px;
    background: #eee;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}

.image-placeholder img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.metrics {
    margin-top: 10px;
    padding: 8px;
    background: #e8e8e8;
    border-radius: 5px;
    font-size: 12px;
    font-family: monospace;
    font-weight: bold;
    line-height: 1.4;
}

.info {
    margin-top: 8px;
    padding: 5px;
    background: #fff3cd;
    border-radius: 4px;
    font-size: 10px;
    color: #856404;
}

.comparison {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #c3e6cb;
}

.comparison h3 {
    margin-bottom: 12px;
}

.comparison p {
    margin: 8px 0;
    line-height: 1.5;
}
