.intro-section {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 12px;
    font-weight: 500;
}

.feature-item .material-icons {
    color: var(--success);
    font-size: 24px;
}

.upload-section {
    margin-bottom: 3rem;
}

.upload-box {
    border: 3px dashed #E5E7EB;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #FAFBFC;
}

.upload-box.dragover {
    border-color: var(--primary-purple);
    background: rgba(123, 44, 191, 0.05);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    font-size: 64px;
    color: var(--primary-orange);
    opacity: 0.8;
}

.upload-content h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin: 0;
}

.upload-content p {
    color: var(--gray);
    margin: 0;
}

.preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

#previewImage {
    max-width: 200px;
    max-height: 200px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.preview-info {
    display: flex;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-weight: 600;
}

.info-item .material-icons {
    font-size: 20px;
    color: var(--primary-purple);
}

.settings-section {
    background: #F9FAFB;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.settings-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.settings-section h3 .material-icons {
    color: var(--primary-orange);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
}

.setting-item small {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.color-input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.color-input-wrapper input[type="color"] {
    width: 60px;
    height: 50px;
}

.color-input-wrapper input[type="text"] {
    flex: 1;
}

.btn-large {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
}

.progress-section {
    text-align: center;
    padding: 3rem 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-purple));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--gray);
    font-weight: 600;
}

.results-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.results-section h3 .material-icons {
    color: var(--success);
    font-size: 32px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.preview-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-purple);
}

.preview-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
}

.preview-item .size-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
}

.download-section {
    margin-bottom: 3rem;
}

.download-section .btn {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.1rem;
}

.code-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.code-section {
    background: #F9FAFB;
    border-radius: 16px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-purple);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.code-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    margin: 0;
}

.code-header .material-icons {
    color: var(--primary-orange);
}

.copy-code-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

.code-section pre {
    background: #1E293B;
    color: #E2E8F0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1rem 0;
}

.code-section code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-section .btn {
    margin-top: 1rem;
}

.instructions-box {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid #0EA5E9;
    margin-top: 2rem;
}

.instructions-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.instructions-box .material-icons {
    color: #0EA5E9;
}

.instructions-box ol {
    margin-left: 1.5rem;
    line-height: 2;
}

.instructions-box code {
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .upload-box {
        padding: 2rem 1rem;
    }

    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}
