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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    color: white;
    padding: 40px 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.upload-section {
    text-align: center;
    margin-bottom: 30px;
}

.upload-label {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 500;
}

.upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.upload-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

.sample-images {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.sample-btn {
    padding: 10px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.sample-btn:hover {
    background: #667eea;
    color: white;
}

.controls {
    margin-bottom: 30px;
}

.vision-types {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.vision-type {
    position: relative;
    cursor: pointer;
}

.vision-type input {
    position: absolute;
    opacity: 0;
}

.vision-type span {
    display: block;
    padding: 15px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.2s;
    text-align: center;
    min-width: 150px;
}

.vision-type input:checked + span {
    border-color: #667eea;
    background: #f0f4ff;
    color: #667eea;
    font-weight: 500;
}

.vision-type small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 3px;
}

.image-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.image-preview {
    text-align: center;
}

.image-preview h3 {
    margin-bottom: 15px;
    color: #667eea;
}

canvas {
    max-width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-section {
    margin-top: 40px;
}

.info-section h2 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.info-card h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.info-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
}

footer {
    text-align: center;
    color: white;
    padding: 30px 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .image-container {
        grid-template-columns: 1fr;
    }
    
    .vision-types {
        flex-direction: column;
        align-items: center;
    }
    
    .vision-type span {
        min-width: 200px;
    }
    
    main {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
}