/* Improved List Timer Styles */
.timer-wrapper.list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    transition: background-color 0.2s;
    min-width: 140px;
    /* Ensure enough space */
}

/* Hover effect on wrapper */
.timer-wrapper.list:hover {
    background-color: #f9fafb;
}

.timer-wrapper.list .list-time {
    font-family: 'Inter', monospace;
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    min-width: 65px;
    /* Fixed width for time string 00:00:00 */
    text-align: right;
}

.timer-wrapper.list .play-btn {
    width: 34px;
    height: 34px;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.timer-wrapper.list .play-btn:hover {
    border-color: var(--primary);
    background: #f0f7ff;
    color: var(--primary);
    transform: scale(1.05);
}

.timer-wrapper.list .play-btn.running {
    background: #fff5f5;
    border-color: #feb2b2;
    color: #e53e3e;
    animation: pulse-red 2s infinite;
}

.timer-wrapper.list .play-btn .timer-icon {
    /* Center icon */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-play {
    margin-left: 2px;
}



/* Header Stop Button */
.btn-stop-header {
    background-color: #fff;
    border: 1px solid #ff5630;
    /* var(--danger) */
    color: #ff5630;
    border-radius: 4px;
    padding: 0 8px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    /* Match line height */
}

.btn-stop-header:hover {
    background-color: #ff5630;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 86, 48, 0.2);
}

.btn-stop-header:active {
    transform: translateY(1px);
}