.task-timer-widget {
    width: 128px;
    height: 128px;
    display: inline-block;
    vertical-align: middle;
    position: relative; /* Essential for overlay positioning */
    
    cursor: default; /* Changed from pointer so whole widget isn't clickable everywhere */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 50%;
    transition: transform 0.1s ease;
    
    /* Reset basic text properties for the container */
    line-height: normal;
    font-family: sans-serif;
    box-sizing: border-box;
}

/* Alignment Options */
.task-timer-widget[data-align="right"] { float: right; margin: 0 0 10px 20px; }
.task-timer-widget[data-align="left"] { float: left; margin: 0 20px 10px 0; }

.task-timer-widget:active {
    transform: scale(0.99); /* Subtle press effect */
}

/* Canvas styling */
.task-timer-widget canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer; /* Restore pointer for the canvas (clock face) area */
    border-radius: 50%;
}

/* Digital Panel Overlay Styles */
.timer-digital-panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 88px; /* Based on 128px height: Center(64) + Offset(24) */
    
    background-color: rgba(50, 50, 50, 0.85); /* Slightly darker for better contrast */
    border-radius: 3px;
    
    /* CSS Reset / Decoupling */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0px !important; /* Reduced gap */
    
    padding: 2px 3px !important; /* Reduced padding to make it narrower */
    margin: 0 !important;
    border: none !important;
    
    line-height: 1 !important;
    box-sizing: border-box !important;
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.timer-digit {
    /* Explicit Font Reset to guarantee monospace look */
    font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Console", monospace !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    font-style: normal !important;
    letter-spacing: -0.6px !important; /* Slightly tighten letter spacing */
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    
    /* Explicit Layout Reset */
    line-height: 1 !important;
    display: inline-block !important;
    height: auto !important;
    width: auto !important;
    
    /* Explicit Spacing Reset */
    margin: 0px 0px -2.5px 0px !important;
    padding: 1px 1px !important; /* Reduced padding */
    
    color: white !important;
    background: transparent;
    cursor: ns-resize; /* Indicates scrolling */
    user-select: none;
    -webkit-user-select: none;
    border-radius: 3px;
}

.timer-sep {
    /* Inherit font resets from explicit definition below */
    font-family: "Courier New", Courier, monospace !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: white !important;
    
    margin: 0px 0px -2.5px 0px !important;
    margin-top: -2px !important; /* Visual tweak for colon alignment */
    padding: 0 !important;
    
    opacity: 0.8;
    cursor: default;
}