.dental-coloring-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dental-coloring-container h2 {
    text-align: center;
    color: #2c5282;
    margin-bottom: 30px;
    font-size: 28px;
}

.dental-coloring-container h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.form-section {
    background: #f7fafc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.personalization-type {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.personalization-type label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.personalization-type label:hover {
    border-color: #4299e1;
}

.personalization-type input[type="radio"]:checked + label,
.personalization-type label:has(input:checked) {
    border-color: #4299e1;
    background: #ebf8ff;
}

.info-text {
    background: #fefce8;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #92400e;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #4299e1;
}

#logo-upload {
    display: block;
    width: 100%;
    padding: 20px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    text-align: center;
}

#logo-upload:hover {
    border-color: #4299e1;
    background: #ebf8ff;
}

#logo-preview {
    margin-top: 15px;
    text-align: center;
}

#logo-preview img {
    max-width: 200px;
    max-height: 100px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.drawings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.drawing-item {
    position: relative;
}

.drawing-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.drawing-item label:hover {
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.drawing-item input[type="checkbox"] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.drawing-item input[type="checkbox"]:checked + img {
    opacity: 1;
}

.drawing-item label:has(input:checked) {
    border-color: #48bb78;
    background: #f0fff4;
}

.drawing-item img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.drawing-item span {
    font-size: 12px;
    color: #4a5568;
    text-align: center;
}

.btn-generate {
    display: block;
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #4299e1, #2b6cb0);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}

.btn-generate:hover {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.5);
}

.btn-generate:active {
    transform: translateY(0);
}

#loading-indicator {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#result-container {
    text-align: center;
    padding: 30px;
    background: #f0fff4;
    border-radius: 12px;
    border: 2px solid #48bb78;
}

#result-container h3 {
    color: #276749;
    border: none;
}

.btn-download {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-2px);
    color: white;
}

/* Responsivo */
@media (max-width: 600px) {
    .dental-coloring-container {
        padding: 15px;
    }
    
    .personalization-type {
        flex-direction: column;
        gap: 15px;
    }
    
    .drawings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .drawing-item img {
        height: 80px;
    }
}
