
.container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
}

.controls {
    display: flex;
/* 	display: none; */
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    align-items: center;
}

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

.control-group label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
}

input[type="range"] {
    width: 120px;
    cursor: pointer;
}

#widthDisplay {
    min-width: 35px;
    font-weight: 500;
    color: #555;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.canvas-wrapper {
    position: relative;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    margin-bottom: 15px;
}

#canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
    touch-action: none;
}

.canvas-wrapper.drawing {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.info-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
}

#statusDisplay {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.ready {
    background: #28a745;
}

.status-dot.drawing {
    background: #ffc107;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Feedback visual para trazos descartados */
.canvas-wrapper.flash {
    animation: flashBorder 0.5s ease;
}

@keyframes flashBorder {
    0%, 100% { border-color: #e0e0e0; }
    25% { border-color: #ff6b6b; }
    50% { border-color: #ffa94d; }
    75% { border-color: #ff6b6b; }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .control-group {
        justify-content: center;
    }
    
    input[type="range"] {
        width: 100%;
    }
    
    .info-panel {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}
