/* DFW Foam Cannon Widget Styles 
   v1.0.0
*/

/* The Canvas Overlay */
canvas#foamCanvas {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 9990; 
    pointer-events: none; /* Allows clicks to pass through */
}

/* The Rig Container */
#cannonRig {
    position: fixed;
    bottom: 20px; 
    left: 20px;
    z-index: 9995;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px;
    font-family: sans-serif;
}

/* The Cannon Image */
#cannonImg {
    width: 90px;  
    height: auto;
    transform-origin: center center;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
    pointer-events: none; 
    margin-bottom: -12px; 
    z-index: 2;
}

/* The Controls UI */
#controls {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    width: 100%;
    user-select: none;
    backdrop-filter: blur(4px);
    text-align: center;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Drag Handle */
.drag-header {
    background: #f0f0f0; margin: -8px -8px 8px -8px;
    padding: 6px; border-radius: 8px 8px 0 0;
    cursor: grab; font-size: 0.7rem; font-weight: bold; color: #888;
    letter-spacing: 1px; border-bottom: 1px solid #ddd;
}
.drag-header:active { cursor: grabbing; background: #ddd; }

/* Inputs */
#controls label { 
    font-size: 0.75rem; 
    display: block; 
    margin-bottom: 6px; 
    color: #555; 
    cursor: pointer; 
}
#controls input[type="checkbox"] { 
    vertical-align: middle; 
    margin-right: 4px;
}

/* Buttons */
button#toggleBtn {
    width: 100%; padding: 8px; 
    background: #007bff; border: none; color: white;
    border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 0.8rem;
    transition: background 0.2s;
}
button#toggleBtn:hover { background: #0056b3; }
button#toggleBtn.off { background: #dc3545; }