#ws-app-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: sans-serif;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
}

.ws-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.ws-controls button, .ws-controls input[type="file"] {
    padding: 10px 15px;
    border: none;
    background-color: #0073aa;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.ws-controls button:hover {
    background-color: #005177;
}

.ws-toggle {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#ws-color {
    height: 40px;
    width: 60px;
    cursor: pointer;
    border: none;
}

#ws-canvas-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px dashed #aaa;
    background: #fff;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ws-canvas {
    max-width: 100%;
    height: auto;
    cursor: crosshair;
}

#ws-status {
    width: 100%;
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

#ws-canvas-container {
    position: relative;
    border: 1px solid #ccc;
    background: #eee;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ws-loader-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.ws-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: ws-spin 1s linear infinite;
}

@keyframes ws-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}