* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.tool-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tool-group label {
    font-weight: 600;
    color: #555;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #667eea;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: #4CAF50;
}

.btn-warning {
    background: #FF9800;
}

.btn-danger {
    background: #f44336;
}

.btn-success {
    background: #2196F3;
    font-size: 16px;
}

input[type="number"],
input[type="color"],
select {
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

input[type="number"] {
    width: 70px;
}

select {
    cursor: pointer;
}

.canvas-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
    border: 3px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    min-height: 500px;
    margin-bottom: 30px;
}

#canvas {
    border: 2px solid #ddd;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    background: white;
}

/* Progress Bar Styles */
.progress-container {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 10px;
    border: 2px solid #ffc107;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

#progressText {
    text-align: center;
    color: #856404;
    font-weight: 600;
    margin: 0;
}

/* Instructions */
.instructions {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #2196F3;
}

.instructions h3 {
    color: #1976D2;
    margin-bottom: 15px;
}

.instructions ol {
    margin-left: 20px;
    color: #555;
}

.instructions ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .toolbar {
        justify-content: center;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .canvas-container-wrapper {
        padding: 10px;
    }
    
    .instructions ol {
        margin-left: 15px;
        font-size: 14px;
    }
}
