* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-weight: 600;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-panel {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group label {
    font-weight: 500;
    min-width: 80px;
}

.button-group {
    display: flex;
    gap: 10px;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #6e8efb;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

button:hover {
    background-color: #5c7cfa;
}

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

.stats {
    margin-left: auto;
    font-size: 14px;
}

.image-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.image-panel {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-panel h3 {
    padding: 15px;
    background-color: #f0f0f0;
    text-align: center;
    font-weight: 500;
}

.canvas-wrapper {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background-color: #fafafa;
}

canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    background-color: #fff;
}

.instructions {
    margin-top: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instructions h3 {
    margin-bottom: 10px;
    color: #6e8efb;
}

.instructions ol {
    padding-left: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .image-container {
        flex-direction: column;
    }
    
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats {
        margin-left: 0;
        margin-top: 10px;
    }
}